From OpenNMS
Contents |
Preparation
- Download Sun Java Wireless Toolkit from http://java.sun.com/products/sjwtoolkit/download.html
- Install the Sun JWTK
- Set the path $WTK_HOME to your WTK installation directory
- Install EclipseME, for detail instructions please refer to http://eclipseme.org/docs/installEclipseME.html
OpenNMS Installation
- Checkout the code:
svn co http://opennms.svn.sourceforge.net/svnroot/opennms/opennms/branches/gsoc/interactive-cell-phone-interface
- Go to your local working copy of OpenNMS and build the code:
./build.sh install assembly:directory-inline
- Go to directory target/opennms-1.7.0-SNAPSHOT/bin/ and execute following instructions:
./runjava -s
./install -disU
sudo ./opennms start
Invoking REST from browser
- Open the browser, access http://localhost:8980/opennms
- Login as admin.
- Type http://localhost:8980/opennms/rest/notification/admin/list At this point there should be XML response to the browser showing a list of notifications.
- To acknowledge a particular notification whose notification ID is NNNN: http://localhost:8980/opennms/rest/notification/admin/NNNN/ack
Invoking REST from JME Client
- Import all the projects to Eclipse. For details see here http://www.opennms.org/index.php/Eclipse_and_OpenNMS
- Go to Window-> Preferences -> J2ME - > Device Management
- Click import
- Specify the search directory to your WTK installation directory
- Click finish. Several devices should appear on the list.
- Right click in the opennms-mobile-client project
- Select J2ME-> Convert to J2ME project
- Select the MobileClient.java
- Right click, Run as emulated J2ME Midlet.
- The application should be loaded to emulator.
- In the emulator, select CheckNotification menu.
- List of notifications will appear on the screen.
- Select details of one of the notification will show the description of the notification.
- Select acknowledge of one of the notification will acknowledge the notification to the server.






