I was not clear enough,

I have not got problems with accessing my EJBs from a servlet within the
SAME J2EE application, i.e. when the servlet and EJB is deployed in the same
.EAR file.

I have problems with accessing EJBs remotely from a remote Servlet client!
Please see my first mail below and help me with this!

Thanks,

Tibor Hegyi

webmiles AG
Ridlerstr. 31b
80339 M|nchen
Tel. 089/ 12469-309
Fax 089/ 12469 - 222
e-mail: [EMAIL PROTECTED]

-----Urspr|ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Fyffe Carl
Gesendet: Freitag, 23. Februar 2001 20:59
An: Orion-Interest
Betreff: RE: Accessing Orion as EJB Server


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