[jboss-user] [JBossWS] - Re: Are ports reusable/concurrent?

jopersson do-not-reply at jboss.com
Thu Oct 2 05:22:46 EDT 2008


Bundled WSDL file in META-INF in client and loads it with classloader works fine and reduces network traffic.

URL wsdlURL = Resources.findFileAsURL(wsdlURLFileName);
String namespaceURI = Resources.getProperty("namespaceURI");
String localpart = Resources.getProperty("localpart");
service = new MyService(wsdlURL, new QName(namespaceURI, localpart));
port = service.getMyPort();  
((StubExt)port).setConfigName("Standard WSSecurity Client");

Port is reused (read somewhere port is not thread safe).

Otherwise proxy will use URL hardcoded from proxygenerator.

Works fine (for us). 
HTH.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179963#4179963

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179963



More information about the jboss-user mailing list