tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreessen <>
Subject Binding custom WebServiceContext problems.
Date Thu, 21 Jan 2010 17:54:54 GMT

Hi people,
Just ran into problems with binding. I am using OpenEJB for WS tests and
need to bind my custom WebServiceContext with JNDI to make 
WebServiceContext wctx;
works properly for my tests.

In my setUp method I do the following:

Properties props = new Properties();
        props.setProperty("openejb.embedded.remotable", "true");
initialContext = new InitialContext(props);
        WebServiceContextStub wctxStub = new WebServiceContextStub();
 initialContext.bind("java:comp/WebServiceContext", wctxStub);
        wctxStub =

But the last line throws javax.naming.NameNotFoundException: Name
"comp/WebServiceContext" not found. (jndi name was taken from
here ).
How could it be done? Appreciate for your help...

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message