Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Applet Servlet Commmunication in Lotus Domino 5.0.2  RSS feed

 
suman paul
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Bartender
Posts: 18775
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you closing the input stream that the URLConnection returned?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!