public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }
public ExtensibleWebServiceContext newWebServiceContext(InvocationType type, MessageContext messageContext) { ExtensibleWebServiceContext context = null; //checking for a provided WebServiceContext in the MessageContext; to be removed after EJBTHREE-1604 WebServiceContext providedContext = (WebServiceContext)messageContext.get(WebServiceContext.class.toString()); if (providedContext != null) context = new WebServiceContextDelegate(providedContext); else if(type.toString().indexOf("EJB")!=-1 || type.toString().indexOf("MDB")!=-1) context = new WebServiceContextEJB(messageContext); else context = new WebServiceContextJSE(messageContext); return context; } }