Title: RE: Cross Linking ejb's from different Applications?

Invoking ejb from different machine is same as invoking ejb from different application.

For invoking ejb which got deployed in another application you have to provide the PROVIDER_URL in getting the while creating the initial context.

Steps:

Hashtable env = new Hashtable();
env.put(Context.PROVIDER_URL, "ormi://localhost/<appname>");
Context ctx = new InitialContext(env);

Now make a lookup for your EJB.  No need to give any ejb-ref elements in the web.xml.

Kesav Kumar Kolla
Voquette Inc
650 356 3740(W)
510 889 6840(R)
Voquette....Delivering Sound Information



-----Original Message-----
From: Pavan Dinavahi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 1:39 PM
To: Orion-Interest
Subject: Cross Linking ejb's from different Applications?


My ejb needs a ref for another ejb which is in a different application in
the same server.
I am having Lookup problems.
My ejb-jar.xml specifies the <ejb-ref>
My problem is i wanna know what i should specify in the orion-ejb-jar.xml
for
location for ejb-ref tag:<ejb-ref-mapping location="???" name="name as in
ejb ref in ejb-jar.xml" />

DO i need anything special in the orion-application.xml for namespaces ??.

I really appreciate anyone who can give me a step by step procedure for
enabling cross linking ejb's from different applications.

Thanks,
Pavan

Reply via email to