Examples of HandleDelegate


Examples of javax.ejb.spi.HandleDelegate

      log.debug("Begin java:comp/env for EJB: " + beanMetaData.getEjbName());
      ClassLoader tcl = SecurityActions.getContextClassLoader();
      log.debug("TCL: " + tcl);

      ORB orb = null;
      HandleDelegate hd = null;
      try
      {
         orb = (ORB)server.getAttribute(ORB_NAME, "ORB");
         hd = (HandleDelegate)server.getAttribute(ORB_NAME, "HandleDelegate");
      }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

    public Object getPrimaryKey() {
        return primaryKey;
    }

    private void writeObject(ObjectOutputStream out) throws IOException {
        HandleDelegate handleDelegate = getHandleDelegate();
        handleDelegate.writeEJBObject(getEJBObject(), out);
        out.writeObject(primaryKey);
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

        handleDelegate.writeEJBObject(getEJBObject(), out);
        out.writeObject(primaryKey);
    }

    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
        HandleDelegate handleDelegate = getHandleDelegate();
        ejbObject = handleDelegate.readEJBObject(in);
        primaryKey = in.readObject();
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

    }

    private static HandleDelegate getHandleDelegate() {
        try {
            Context context = new InitialContext();
            HandleDelegate handleDelegate = (HandleDelegate) context.lookup("java:comp/HandleDelegate");
            return handleDelegate;
        } catch (Throwable e) {
            throw new org.omg.CORBA.MARSHAL("Could not find handle delegate in jndi at java:comp/HandleDelegate", 0, org.omg.CORBA.CompletionStatus.COMPLETED_YES);
        }
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

        }

    }

    private void writeObject(ObjectOutputStream out) throws IOException {
        HandleDelegate handleDelegate = getHandleDelegate();
        handleDelegate.writeEJBHome(getEJBHome(), out);
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

        HandleDelegate handleDelegate = getHandleDelegate();
        handleDelegate.writeEJBHome(getEJBHome(), out);
    }

    private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
        HandleDelegate handleDelegate = getHandleDelegate();
        EJBHome home = handleDelegate.readEJBHome(in);

        try {
            ior = getOrb().object_to_string((org.omg.CORBA.Object) home);
        } catch (Exception e) {
            throw new RemoteException("Unable to convert object to IOR", e);
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

    }

    private static HandleDelegate getHandleDelegate() {
        try {
            Context context = new InitialContext();
            HandleDelegate handleDelegate = (HandleDelegate) context.lookup("java:comp/HandleDelegate");
            return handleDelegate;
        } catch (Throwable e) {
            throw new org.omg.CORBA.MARSHAL("Could not find handle delegate in jndi at java:comp/HandleDelegate", 0, org.omg.CORBA.CompletionStatus.COMPLETED_YES);
        }
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

            throw new RemoteException("Error creating stub", e);
        }
    }

    private void writeObject(ObjectOutputStream oostream) throws IOException {
        HandleDelegate delegate = HandleDelegateImpl.getDelegate();
        delegate.writeEJBObject(getEJBObject(), oostream);
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

        HandleDelegate delegate = HandleDelegateImpl.getDelegate();
        delegate.writeEJBObject(getEJBObject(), oostream);
    }

    private void readObject(ObjectInputStream oistream) throws IOException, ClassNotFoundException {
        HandleDelegate delegate = HandleDelegateImpl.getDelegate();
        EJBObject obj = delegate.readEJBObject(oistream);
        this.ior = CorbaORBService.getCurrent().object_to_string((org.omg.CORBA.Object) obj);
        this.stubClass = obj.getClass();
    }
View Full Code Here

Examples of javax.ejb.spi.HandleDelegate

            throw new RemoteException("Error creating stub", e);
        }
    }

    private void writeObject(final ObjectOutputStream oostream) throws IOException {
        final HandleDelegate delegate = HandleDelegateImpl.getDelegate();
        delegate.writeEJBHome(getEJBHome(), oostream);
    }
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.