dcsimg
I always get a <strong>javax.naming.NameNotFoundException</strong> whenever I try the followin statement:!_NEWLINE_!<strong>context.lookup(&quot;BeanHome&quot;)</strong>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Edgar_Martinez
Posted On:   Monday, April 16, 2001 10:52 AM

I always get the following error: javax.naming.NameNotFoundException: '.SticBeanHome'; remaining name '.SticBeanHome'
whenever I try the followin statement:
context.lookup("SticBeanHome") Any suggestions?? Thanks.

Re: I always get a <strong>javax.naming.NameNotFoundException</strong> whenever I try the followin statement:!_NEWLINE_!<strong>context.lookup(&quot;BeanHome&quot;)</strong>

Posted By:   AlessandroA_Garbagnati  
Posted On:   Monday, April 16, 2001 12:35 PM

Edgar,

I think that the problem is that you need to lookup for the bean and not for the home interface. But, what you will get back is the home interface:



Object obj = ic.lookup("MyBean");

MyBeanHome home = (MyBeanHome)PortableRemoteObject.narrow(obj, MyBeanHome.class);


About | Sitemap | Contact