我正在通过javax.xml.ws.WebServiceProvider开发2个Web服务终结点,并且Web Service客户端将使用保持活动状态或持久连接进行连接。
两个端点都具有不同的portName,但是它们仍然可以在相同的连接下进行连接。如何强迫他们使用单独的持久连接?</ p>
源代码:
@Component
@ServiceMode(value = Service.Mode.MESSAGE)
@WebServiceProvider( portName = "port01", serviceName = "er/asdfg"
,targetNamespace = "https://qwe-rty.wer.wer.mm.fghf.ert/")
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
public class WebServiceEndPoint1 implements Provider<SOAPMessage> {
.........
@Component
@ServiceMode(value = Service.Mode.MESSAGE)
@WebServiceProvider( portName = "port02", serviceName = "qe/sdsfs"
,targetNamespace = "https://qwe-rty.wer.wer.mm.fghf.ert/")
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
public class WebServiceEndPoint2 implements Provider<SOAPMessage> {
.........