Refine search
protected void reconnect(Object object) throws IOException { if (object instanceof ObjectImpl) { try { // Check we are still connected ObjectImpl objectImpl = (ObjectImpl) object; objectImpl._get_delegate(); } catch (BAD_OPERATION e) { try { // Reconnect final Stub stub = (Stub) object; final ORB orb = (ORB) new InitialContext().lookup("java:comp/ORB"); stub.connect(orb); } catch (NamingException ne) { throw EjbLogger.ROOT_LOGGER.failedToLookupORB(); } } } else { throw EjbLogger.ROOT_LOGGER.notAnObjectImpl(object.getClass()); } }
public void setReference(org.omg.CORBA.Object ref) { myRef = ref; orb = ((org.omg.CORBA.portable.ObjectImpl)myRef)._orb(); } }
@Override public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectID) { return ((org.omg.CORBA.portable.ObjectImpl)wrappedHandler)._ids(); }
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF(); String[] args = null; java.util.Properties props = null; org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props).string_to_object(str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate(); _set_delegate(delegate); }
public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) { return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj; } else if (!obj._is_a(id())) { throw new org.omg.CORBA.BAD_PARAM(); } else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate(); return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate); } } }
public static void setDelegate(Object stub, Delegate delegate) { if (stub instanceof DynamicStub) ((DynamicStub) stub).setDelegate(delegate); else if (stub instanceof ObjectImpl) ((ObjectImpl) stub)._set_delegate(delegate); else throw wrapper.setDelegateRequiresStub(); }
public static boolean isLocal(Object stub) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).isLocal(); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._is_local(); else throw wrapper.isLocalRequiresStub(); }
private void readObject(java.io.ObjectInputStream s) { try { String str = s.readUTF(); org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init().string_to_object(str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate(); _set_delegate(delegate); } catch (java.io.IOException e) { } }
public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) { return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj; } else if (!obj._is_a(id())) { throw new org.omg.CORBA.BAD_PARAM(); } else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate(); return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate); } } }
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }
public static boolean isLocal( Object stub ) { if (stub instanceof DynamicStub) return ((DynamicStub)stub).isLocal() ; else if (stub instanceof ObjectImpl) return ((ObjectImpl)stub)._is_local() ; else throw wrapper.isLocalRequiresStub() ; }
private void readObject (java.io.ObjectInputStream s) { try { String str = s.readUTF (); org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); } catch (java.io.IOException e) {} }
public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) { if (obj == null) { return null; } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) { return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj; } else if (!obj._is_a(id())) { throw new org.omg.CORBA.BAD_PARAM(); } else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate(); return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate); } } }
/** * @param codebase * @return */ private org.omg.CORBA.ORB getorb(org.omg.CORBA.Object codebase) { if (codebase instanceof ObjectImpl) { return ((ObjectImpl)codebase)._orb(); } else { return null; } }
public static String[] getTypeIds(Object stub) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).getTypeIds(); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._ids(); else throw wrapper.getTypeIdsRequiresStub(); }
public static void setDelegate(Object stub, Delegate delegate) { if (stub instanceof DynamicStub) ((DynamicStub) stub).setDelegate(delegate); else if (stub instanceof ObjectImpl) ((ObjectImpl) stub)._set_delegate(delegate); else throw wrapper.setDelegateRequiresStub(); }
public static boolean isLocal(Object stub) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).isLocal(); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._is_local(); else throw wrapper.isLocalRequiresStub(); }
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF (); String[] args = null; java.util.Properties props = null; org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); }
public static com.sun.org.omg.SendingContext.CodeBase narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof com.sun.org.omg.SendingContext.CodeBase) return (com.sun.org.omg.SendingContext.CodeBase)obj; else if (!obj._is_a (id ())) throw new org.omg.CORBA.BAD_PARAM (); else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); return new com.sun.org.omg.SendingContext._CodeBaseStub (delegate); } }
public org.omg.CORBA.ORB _get_orb() { return _orb() ; } }