users@glassfish.java.net

Re: Is there a vendor independent way of accessing EJBs from a standalone

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Feb 2007 23:59:22 PST

Did you try the RMI over IIOP way?

From
http://java.sun.com/j2se/1.4.2/docs/guide/rmi-iiop/tutorial.html

         
        // STEP 1: Get the Object reference from the Name Service
        // using JNDI call.
            objref = ic.lookup("HelloService");
            System.out.println("Client: Obtained a ref. to Hello server.");

        // STEP 2: Narrow the object reference to the concrete type and
        // invoke the method.
            hi = (HelloInterface) PortableRemoteObject.narrow(
                objref, HelloInterface.class);
            hi.sayHello( " MARS " );
[Message sent by forum member 'weberjn' (weberjn)]

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