>>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