users@glassfish.java.net

Re: Interop with Glassfish and other application servers

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Nov 2007 09:27:33 PST

Glassfish and WLS 10 should be able to interop both ways.

If you deploy EJB to WLS with global jndi-name [b]ejb/foo[/b], and you want to access it from an app running in glassfish, you can

@EJB(mappedName="corbaname:iiop:1.2_at_localhost:7001#[b]ejb/foo[/b]", name="ejb/fooRef")
private FooRemote foo;

This has the same effect as mapping it in sun-ejb-jar.xml
<ejb-ref>
                <ejb-ref-name>ejb/fooRef</ejb-ref-name>
                <jndi-name>corbaname:iiop:1.2_at_localhost:7001#[b]ejb/foo[/b]</jndi-name>
</ejb-ref>

In any event, do not include java:comp or java:comp/env in the mapped name.
[Message sent by forum member 'cf126330' (cf126330)]

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