|
|
GPS Tracking Demo for WLEvS
Paco Gomez's Blog |
November 28, 2007 9:52 AM
|
Comments (1)
In my last article, Location-based Information Processing with WebLogic Event Server and Web 2.0, I described a WLEvS application that detects the proximity of a vehicle to a location. I have posted the source code and binary of the demo on Dev2Dev's CodeShare. The demo is now self-contained. It runs entirely on WLEvS and just requires an Internet connection to display the map mashup. How it Works - WLEvS receives the GPS information stored on a file using a file adapter.
- The processor determines if a position is near the target destination and generates an alert.
- Positions and alerts are stored in memory on WLEvS application (Java Bean)
- The same Java Bean is also a servlet that displays a JavaScript page. The page is a mashup of Yahoo! Maps and the data from WLEvS.
The dashboard is shown here: Installation - Download the project from CodeShare and unzip the file. The code is distributed as and Eclipse project. It can also be built from the command line.
- Copy "openmap.jar" to the WLEvS domain directory
- Modify "startwlevs.cmd" to add the previous file to the bootclasspath:
set BOOTCP=-Xbootclasspath/a:openmap.jar
"%JAVA_HOME%\bin\java" %BOOTCP% ...
- Start WLEvS
- Update "setEnv.cmd" (JAVA_HOME and ANT_HOME) and "build\build.properties" (wlevs.home)
- From another command window, build and install the application:
setEnv.cmd
build.cmd dist
build.cmd install
- Open a browser window to access the dashboard. Here is the URL: http://localhost:9002/gps
- Click on "Start Trip" to start the demo. Click on "Reset" to bring the demo to the initial state.
The Demo in Action
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
Awesome Paco. I've updated your article to point to this code and video too.
Posted by: jonmountjoy on December 3, 2007 at 3:19 AM
|
|