wood burning stoves*
The moose likes JNLP and Web Start and the fly likes Access Java Web Start using Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Access Java Web Start using Servlets" Watch "Access Java Web Start using Servlets" New topic
Author

Access Java Web Start using Servlets

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

Hi,
I'm new to Java Web Start and JNLP. I want to access Web Start application using Servlet. Actually I
want to pass data from servlet to web start application for printing. The data contains in a ArrayList.
Since I'm new to this technology i don't have idea , how to start.
Please help me out in this.

Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
The desktop app could connect to the server using HTTP. While it's possible to transfer actual Java objects in binary serialized form, in practice that's hard because serialization doesn't work well (or at all) between different JVM versions. Transferring a text version of the data (maybe obtained by using the java.beans.XMLEncoder class) would be simpler. See this example for how to send a POST request to an HTTP server and read its response.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: Access Java Web Start using Servlets