aspose file tools*
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
Author

Web Service Connection Doesn't get closed

Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31
Hi,

I am creating my webservice client using following:

java -Dhttp.proxyHost=webproxy -Dhttp.proxyPort=8080 "-Dhttp.nonProxyHosts=<hosts>" -cp "%JAVA_HOME%\lib\tools.jar" com.sun.tools.internal.ws.WsImport -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.

http://docs.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html

Thanks,
Abhishek
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service Connection Doesn't get closed