• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding Applet Servlet Commmunication in Lotus Domino 5.0.2

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
I have successfully deployed a hyperbolic tree
thro' httpTunneling.The only problem i am facing.Once the applet calls the servlet from the jar file its opening a URLConnection.and doing the rest of the operation.After accessing 20-30
times its giving some kind of thread is blocked
/servlet/NetSkillDAServlet means already in use.
How do i get out of it.None of the server like
tomcat,resin,weblogic behaves like this.Is it something with the code or some config has to be done.If anyone could advice me what to do.

Applet code:

webServerStr = null;
hostName = "....."
port = "8080";
servletPath="/sevlet/NetSkillDAServlet";
webServerStr = "http://" + hostName + ":" + port + servletPath;
URLL url = new URL(webServerStr);
URLConnection urlconnection = url.openConnection();
ObjectInputStream inputFromServlet = new ObjectInputStream(urlconnection.getInputStream());
Vector dataFromServlet = (Vector)inputFromServlet.readObject();

Anything else to do?? Coz URL connection does not
have something to close.But its not giving error in any other servers.
thanx and regards
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you closing the input stream that the URLConnection returned?
reply
    Bookmark Topic Watch Topic
  • New Topic