Take the 2-minute tour ×

How can I access an EJB deployed on websphere community server using Open EJB? I'm trying to use code like the following but am not sure what to use for a URL. Note I've tried port 2809 and 1099 with ejb: and IIOP URL prefixes.

            Properties props = new Properties();
            Context ctx = new InitialContext(props);
            Object ref = ctx.lookup("CalculatorRemote  ");

CalculatorImpl h = (CalculatorImpl )PortableRemoteObject.narrow(ref,CalculatorImpl.class);

share|improve this question
What is the client? A webapp also deployed to WAS or a stand-alone app? Or ...? –  djna May 4 '10 at 15:09
I want the client to be a stand-alone console app. –  Jared May 4 '10 at 15:34

1 Answer 1

Try this:

share|improve this answer

Your Answer


