users@glassfish.java.net

Re: looking up ejb3 from another deployed servlet

From: <glassfish_at_javadesktop.org>
Date: Sun, 04 Nov 2007 18:24:11 PST

Please see glassfish EJB FAQ (search for corbaname):
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

You can also do it all with injection with mappedName, to avoid using sun-web.xml:
@EJB(name="fooejbref", mappedName="corbaname:iiop:host2:3700#Foo")
private FooRemote fooRemote;

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=243741