• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Applet -Servlet connection in JNLP

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am seeking your help in my assignment.

I am launching an applet through JNLP.

The directory Structure i am following is like this


The main code is here

This applet communicates with the servlet DaytimeServlet using the function httptext().The servlet connects to the database and returns back the values for filling the table.

When i am launching the applet via jnlp without the servlet it is launching fine.i.e i have hardcoded the values in the applet code only.But when i am trying to launch the applet with the servlet communication for getting the values from the database i am not able to launch it ..

i am not getting any errors ..i dont see anything

here is my jar file

here is my jnlp file

Anyone please suggest me where i am going wrong.Or please suggest me some atricles or link where i can get the communication going fine ..How to make this JNLP applet-Servlet Communication possible?
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't looked into your code deeply but I have one suggestion.

Why don't you use RMI for this kind of communication. I have used RMI for similar kind of functionality and believe me it is much faster and wasier as compared to http or webservices.

Letme know if you need any help about setting up RMI in web start application.
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic