Tibor,

I suggest you check out http://www.jollem.com   They have two orion primers
that are very helpful in understanding the relationships between ejb,
servlets, jsps and how orion implements them.  Specifically for your
question please check out the Orion
Primer(http://www.jollem.com/orion-primer/).  This will give you an example
of how to do an EJB with a servlet and what is required to make it all work.

Carl

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tibor Hegyi
Sent: Friday, February 23, 2001 2:33 AM
To: Orion-Interest
Subject: Accessing Orion as EJB Server


Hi Guys,

Well, the topic was touched a couple of times but I could not figure the
answer out from teh archive, so please be patient!

I want to access my EJBs deployed in Orion remotely from a Servlet deployed
in Tomcat. I know that I must set up jndi properties (URL, principal,
password, InitialContextFactory). Two questions I have:

1. What reference should I use in the ctx.lookup method call in the Servlet?
"java:comp/env/ejb/EJBName" or "com.somepackage.EJBRemoteInterface"?

2. What files do I need on the client (servlet) side in order to compile and
run my servlet?
Only the Home and Remote interfaces or some helper classes too? How can I
generate the helper classes with Orion?

Please help with these above!

Best regards and keep on! The list is nice!

Tibor



Reply via email to