hi all,
i am new to this forum and as well as new to ejb concepts
i was trying to do small application in ejb 3.0
i am using oracle JDeveloper.
i created one entity bean named First.java and created interfaces as FirstEJBLocal and FirstEJBRemote. and i was created FirstEJBBean as bean class. then i created FirstEJBClient to run this application
I kept all under a same package named ejbfirst.
while compiling all it doesn't throws any error.
but while running
Context jndiContext =getInitialContext();
Object ref = jndiContext.lookup("FirstEJBBean");
FirstEJBLocal fstif =(FirstEJBLocal)PortableRemoteObject.narrow(ref,FirstEJBLocal.class);
it didn't execute and exited from the application
then i used debug option to find an error
the error was in the line,
Object ref = jndiContext.lookup("FirstEJBBean");
what is the problem in this
it may b very childish
but please help me to overcome it
Thank you