alex Rozario

Greenhorn
+ Follow
since May 15, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by alex Rozario

hi all,

i am new to ejb.
from using oreilly's enterprise java beans 3.0 5th edition
i developed First.java as an entity bean,
FirstEJBRemote.java as an interface,
FirstEJBBEan.java an a bean class and
FirstClient.java as a client application in Oracle JDeveloper.

i ve compiled all of them sucessfully.

now how to run this application.

do i need anything more.

thank you.
thank you mr.satou
thank you for your response.

then how can i change my codings.
ofcourse even though i have created two interfaces i didn't used both.

i am using oreilly's enterprise javabeans 3.0 5th edition.
which book should i follow.
hi juan & pradeep,

me too have an same error.
just now i posted that.


hi mr.joe
i have tried your suggestion
but still it shows me the same error
can you help me further
thank you
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