users@glassfish.java.net

Re: Remote server: bean call

From: <glassfish_at_javadesktop.org>
Date: Fri, 02 Jul 2010 14:33:56 PDT

cf126330,

Thank you very much, we're getting closer. Is this documented in the GF v3 guide anywhere? I wouldn't mind a RTFM in the least. One last question - have you gotten this to work with an initialContext() lookup:

InitialContext ctx = null;
EJBRemote thisEJB = (EJBRemote) ctx.lookup("corbaname:iiop:1.2_at_hostname.domain:3700#path.to.EJBRemote");

by chance? The guide says do not utilize a parameters for the context, just use InitialContext().

@jandebeule:

I've verified cf126330's example (except for the InitialContext() part), it seems we weren't placing @Remote(RemoteInterface.class) in our EJBs and using "iiop:1.2", although I'm fairly certain that was part of our test case(s) as we came across that in a few forums.
[Message sent by forum member 'rumblesnort']

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