Make sure that your bean was successfully loaded, you can check the log file
to see that. Sometimes when your bean not loaded, the server also gives you
out NameNotFoundException.
Lei
> It's me again. I having more problems with EJBs. I have deployed my
CMP
> EJB. I have started the server in which the beans are contained, but now
> when I try and look up the home interface I get an exception. Can any
one
> help me out with this one?
>
> I have this property defined for my bean.
>
> ejb.beanHomeName=TestTable
>
> Here is my code for looking up the EJB.
>
> Properties lProps = new Properties( );
>
> lProps.setProperty( Context.INITIAL_CONTEXT_FACTORY,
> "allaire.ejipt.ContextFactory" );
> lProps.setProperty( Context.PROVIDER_URL,
> "ejipt://localhost:2324" );
>
> file://get naming context
> Context ctx = new InitialContext(lProps);
>
> file://look up jndi name
> Object ref = ctx.lookup("TestTable");
>
>
> Here is the exception that I am getting.
>
> javax.naming.NameNotFoundException: TestTable not found
> at allaire.ejipt._NamingContext.lookup(_NamingContext.java:73)
> at allaire.ejipt._ClientContext.lookup(_ClientContext.java:113)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at security.TestTableTestClient2.<init>(TestTableTestClient2.java:33)
> at security.Test.main(Test.java:6)
>
> --------------------------------------------------------------------------
----
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.