X

This Blog covers the latest Java technology for small devices and security in the IoT, mobile, ID and Payment

Lightweight web server for Java ME Embedded 8

Guest Author

 

To help programmers quickly start with Java ME Embedded 8 development, we have released a new bundle with demo applications. It is now available for download on OTN: http://www.oracle.com/technetwork/java/embedded/javame/embed-me/downloads

The package includes two applications: a Web Services with JAX-RS client sample and a Lightweight Web Server for Java ME Embedded. This software is dual-licensed to you under the MIT License (MIT) and the Universal Permissive License (UPL). So it is easy to re-use the demo source code within your projects. For a full license text please read the license.txt file of the archive.  
 
The IoT concept implies that field devices use a polling approach to connect to IoT cloud service. However, there are still a number of cases when direct access to the edge device is required, such as an initial appliance setup. The most convenient and user friendly way to configure system parameters remotely is via web access.  
The Java ME Embedded development team have implemented a lightweight web server which is capable of handling HTTP requests and sending back HTTP responses. One of the key benefits of Java ME Embedded is the ability to run the same binary on different hardware, so that you can run this web server on any Java ME Embedded 8.2 device including Emulator.  
 
The feature set of the server is really limited by basic functionality. The Web Server supports HTTP protocol of 1.1 and 1.0 with some limitations, explained in the webserver_readme.txt document. However, those limitations can be eliminated by extending the demo server, the demo distribution license is MIT so you can change the source code, or partly reuse it, within your projects.
 
If you have any questions or suggestions, feel free to reach us at the Java ME Embedded forum:  https://community.oracle.com/community/java/java_embedded/java_me_embedded

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha