Package javax.rmi.CORBA

Examples of javax.rmi.CORBA.Stub


/*     */         else
/* 749 */           return false;
/*     */       }
/*     */     }
/*     */     EJBObject me;
/* 751 */     Stub meStub = (Stub)me;
/* 752 */     Stub otherStub = (Stub)other;
/* 753 */     return meStub._is_equivalent(otherStub);
/*     */   }
View Full Code Here


/* 154 */       return (EJBHome)PortableRemoteObject.narrow(obj, EJBHome.class);
/*     */     }
/*     */
/*     */     try
/*     */     {
/* 159 */       Stub stub = (Stub)this.stubClass.newInstance();
/* 160 */       stub._set_delegate(((ObjectImpl)obj)._get_delegate());
/* 161 */       return (EJBHome)stub;
/*     */     }
/*     */     catch (Exception e) {
/*     */     }
/* 165 */     throw new RemoteException("Error creating stub", e);
View Full Code Here

/* 131 */       return (EJBObject)PortableRemoteObject.narrow(obj, EJBObject.class);
/*     */     }
/*     */
/*     */     try
/*     */     {
/* 136 */       Stub stub = (Stub)this.stubClass.newInstance();
/* 137 */       stub._set_delegate(((ObjectImpl)obj)._get_delegate());
/* 138 */       return (EJBObject)stub;
/*     */     }
/*     */     catch (Exception e) {
/*     */     }
/* 142 */     throw new RemoteException("Error creating stub", e);
View Full Code Here

/*     */       }
/*     */       catch (BAD_OPERATION e)
/*     */       {
/*     */         try
/*     */         {
/* 119 */           Stub stub = (Stub)object;
/* 120 */           ORB orb = (ORB)new InitialContext().lookup("java:comp/ORB");
/* 121 */           stub.connect(orb);
/*     */         }
/*     */         catch (NamingException ne)
/*     */         {
/* 125 */           throw new IOException("Unable to lookup java:comp/ORB");
/*     */         }
View Full Code Here

    public ObjRepServer(String [] args) throws Exception
    {
        ORB orb;
        Object objref;
        IPing pinger;
        Stub stub;

        Remote remObj;

        orb = ORB.init(args, null);

        pinger = new PingImpl();

        remObj = new RemoteIPingImpl(pinger);

        POA rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));

        Servant servant = (Servant) Util.getTie(remObj);

        rootPOA.activate_object (servant );

        rootPOA.the_POAManager().activate();

        stub = (Stub) PortableRemoteObject.toStub(remObj);

        objref = stub._duplicate();

        System.out.println("SERVER IOR: " +  orb.object_to_string(objref));
        System.out.flush();

        orb.run();
View Full Code Here

            final String repoID = ids[i];
            final String stubClazzName = newRMIStubName(repoID);

            try
            {
                final Stub stub = newStub(stubClazzName, obj.getClass());

                stub._set_delegate(thisObject._get_delegate());

                return (Remote) stub;
            } catch (ClassNotFoundException e)
            {
                // ignored
View Full Code Here

                    case L:
                        clazz = (Class) in.readObject();
                        obj = in.readObject();
                        if (obj instanceof Stub) {
                            final Stub stub = (Stub) obj;
                            final ORB orb = getORB();
                            stub.connect(orb);
                        }
                        break;
                    default:
                        throw new IOException("Unkown data type: " + type);
                }
View Full Code Here

TOP

Related Classes of javax.rmi.CORBA.Stub

Copyright © 2018 www.massapicom. 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.