File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web Service Connection Doesn't get closed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Connection Doesn Watch "Web Service Connection Doesn New topic

Web Service Connection Doesn't get closed

Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31

I am creating my webservice client using following:

java -Dhttp.proxyHost=webproxy -Dhttp.proxyPort=8080 "-Dhttp.nonProxyHosts=<hosts>" -cp "%JAVA_HOME%\lib\tools.jar" -p <package> -d <path to wsdl generated classes> -keep -s <java code path> <wsdl location>

Using my GeneratedClientt_Service I am sending my request. I get a response but my connection doesn't get closed at the server.

on the server the max connection limit is 2. After 2nd connection request At server I see:-->
Undisplayed terminal message:Logon attempts exceeded maximum on device: , at: 05/04/12 08:33:32 15246( 16043) 05/04/2012 01:33:32 RTE I Undisplayed terminal message:Login failed. Maximum active logins for this user exceeded. 15246( 16043) 05/04/2012 01:33:32 RTE I Thread termination cleanup complete 15246( 16181) 05/04/2012 01:36:06 RTE I Using "utalloc" memory manager 15246( 16181)

while I see "404 authentication error" on the client. As per now I am using a console java apps to call the service.

I am using : jdk 1.6

Please suggest me the way to close the connection at my end through code. I studied that just for persistance the connection is kept alive. But It's creating an issue for me.

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

How your client code looks like? And have tried the suggestions listed in that document?

[How to ask questions] [Twitter]
I agree. Here's the link:
subject: Web Service Connection Doesn't get closed
jQuery in Action, 3rd edition