Examples of exportObject()


Examples of org.exolab.jms.net.orb.ORB.exportObject()

    public void testClientDisconnect() throws Exception {
        Latch latch = new Latch();
        ORB server = getORB();
        CallbackServer serviceImpl = new CallbackServer(server, latch);

        Proxy proxy = server.exportObject(serviceImpl);
        server.getRegistry().bind("service", proxy);

        ORB client = getClientORB();
        Registry registry = client.getRegistry(getConnectionProperties());
        CallbackService service = (CallbackService) registry.lookup("service");
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

        };

        ORB server = getORB();
        CallbackServer serviceImpl = new CallbackServer(server, latch);

        Proxy proxy = server.exportObject(serviceImpl);
        server.getRegistry().bind("service", proxy);

        ORB client = getClientORB();
        client.addCallerListener(getServerURI(), listener);
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

    private void checkExportObject(BasicPrincipal principal)
            throws Exception {
        Authenticator authenticator = new TestAuthenticator(principal);
        ORB orb = createORB(authenticator);
        EchoServiceImpl impl = new EchoServiceImpl();
        Proxy proxy = orb.exportObject(impl);
        orb.getRegistry().bind("service", proxy);

        Registry registry = getRegistry(principal);
        EchoService service = (EchoService) registry.lookup("service");
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

    private void checkExportObjectURI(BasicPrincipal principal)
            throws Exception {
        Authenticator authenticator = new TestAuthenticator(principal);
        ORB orb = createORB(authenticator);
        EchoServiceImpl impl = new EchoServiceImpl();
        Proxy proxy = orb.exportObject(impl, getExportURI());
        orb.getRegistry().bind("service", proxy);

        Registry registry = getRegistry(principal);
        EchoService service = (EchoService) registry.lookup("service");
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

        Authenticator authenticator = new TestAuthenticator(principal);
        ORB orb = createORB(authenticator);
        EchoServiceImpl echoImpl = new EchoServiceImpl();

        ExportServiceImpl exporterImpl = new ExportServiceImpl(echoImpl, orb);
        Proxy proxy = orb.exportObject(exporterImpl);
        orb.getRegistry().bind("service", proxy);

        Registry registry = getRegistry(principal);
        ExportService exporter = (ExportService) registry.lookup("service");
        EchoService echoer = (EchoService) exporter.exportObjectTo();
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

        Authenticator authenticator = new TestAuthenticator(principal);
        ORB orb = createORB(authenticator);

        CallbackService serviceImpl = new CallbackServiceImpl();
        Proxy proxy = orb.exportObject(serviceImpl);
        orb.getRegistry().bind("service", proxy);

        ORB client = getClientORB();
        Registry registry = getRegistry(principal);
        CallbackService service = (CallbackService) registry.lookup("service");
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB.exportObject()

     */
    protected void setUp() throws Exception {
        super.setUp();

        ORB server = getORB();
        Proxy proxy = server.exportObject(_service);
        server.getRegistry().bind(CALLBACK_SERVICE, proxy);
    }

}
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef.exportObject()

            if (csf == null && ssf == null) {
                ref = new UnicastServerRef(port);
            } else {
                ref = new UnicastServerRef2(port, csf, ssf);
            }
            return ref.exportObject(obj, null, true);
        }

        // Nothing special to be done for this case
        public boolean unexportObject(Remote obj, boolean force)
                throws NoSuchObjectException {
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef.exportObject()

             */
            LiveRef lref =
                new LiveRef(new ObjID(ObjID.ACTIVATOR_ID), port, null, ssf);
            UnicastServerRef uref = new UnicastServerRef(lref);
            ref = uref;
            uref.exportObject(this, null, false);
        }

        public MarshalledObject<? extends Remote> activate(ActivationID id,
                                                           boolean force)
            throws ActivationException, UnknownObjectException, RemoteException
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef.exportObject()

             * 'this' can be exported.
             */
            LiveRef lref = new LiveRef(new ObjID(4), port, null, ssf);
            UnicastServerRef uref = new UnicastServerRef(lref);
            ref = uref;
            uref.exportObject(this, null);
        }

        public ActivationID registerObject(ActivationDesc desc)
            throws ActivationException, UnknownGroupException, RemoteException
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.