users@glassfish.java.net

Re: glassfish - weblogic (8.1) rmi

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 05:52:01 PDT

>>I'd like to do this using code only so that i can set the url in a configuration file. Is this possible ?

No. Although you can do:
@EJB(name="ejb/foo", mappedName="corbaname:iiop:1.2_at_localhost:7001#ejb/foo")
the value for mappedName must be a string literal. To make it configureable, the best option is to use ejb-jar.xml or sun-ejb-jar.xml

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

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