JBoss Community

Service#getPort always returns a new port

created by Kreek Fred in JBoss Web Services - View the full discussion

Hi,

 

When I use Service#getPort I always get a new port.

Example when executing the following code:

 

(BindingProvider)(service.getPort("PortName")).getRequestContext().put(ENDPOINT_ADDRESS_PROPERTY,address);
service.getPort("PortName").doSomething();


the second call to Service#getPort returns a new port and does not use the ENDPOINT_ADDRESS_PROPERTY.

 

Could anybody tell me whether I'm doing something wrong, this is by design, an undocumented feature, just a bug.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community