Skip to main content

sbbinterface, activitycontextinterface NameNotFoundException

2 replies [Last post]
andmus82
Offline
Joined: 2009-06-01

Hi, when i try to get the SbbInterface and the ActivityContextInterface i get the following error:
javax.naming.NameNotFoundException mobicents not bound

My code is:
httpServletRaSbbInterface = (HttpServletRaSbbInterface) myEnv.lookup("slee/resources/mobicents/httpservlet/sbbrainterface");

httpServletRaActivityContextInterfaceFactoryImpl = (HttpServletRaActivityContextInterfaceFactoryImpl) myEnv.lookup("slee/resources/mobicents/httpservlet/acifactory");

Any suggest?
Thanks,
Andrea

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
andmus82
Offline
Joined: 2009-06-01

I solved it using the following names (JSLEE 1.2.3.G.A):

httpServletRaSbbInterface = (HttpServletRaSbbInterface) myEnv.lookup("slee/resources/http-servlet-ra/org.mobicents/1.0.00/http-servlet-ra/factoryprovider");
httpServletRaActivityContextInterfaceFactoryImpl = (HttpServletRaActivityContextInterfaceFactoryImpl) myEnv.lookup("slee/resources/http-servlet-ra/http-servlet-ra-acif");

eduardomartins
Offline
Joined: 2005-10-10

The jndi locals are defined by the sbb descriptor of your application, through the reference to the resource adaptor type, the sbb code must use same ones.