Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Java Web Start using Servlets

 
Micale Raj
Ranch Hand
Posts: 30
Hibernate IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic