Package javax.ejb.spi

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


        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

    }

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

        }

    }

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

        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

    }

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

public final class IIOPHandleDelegate
    implements HandleDelegate
{

    public static HandleDelegate getHandleDelegate() {
        HandleDelegate handleDelegate =
            (HandleDelegate) java.security.AccessController.doPrivileged(
                new java.security.PrivilegedAction() {
                    public Object run() {
                        try {
                            ClassLoader cl = new HandleDelegateClassLoader();
View Full Code Here

    }

    private static HandleDelegate createHandleDelegate()
        throws NamingException
    {
        HandleDelegate handleDelegate;
        try {
            InitialContext ctx = new InitialContext();
            handleDelegate = (HandleDelegate)
                ctx.lookup("java:comp/HandleDelegate");
        } catch(NamingException ne) {
View Full Code Here

    }

    private void writeObject(ObjectOutputStream ostream)
  throws IOException
    {
  HandleDelegate handleDelegate;
  try {     
      handleDelegate = HandleDelegateUtil.getHandleDelegate();          
        } catch ( NamingException ne ) {                           
            throw new EJBException("Unable to lookup HandleDelegate", ne);
        }     
        handleDelegate.writeEJBObject(ejbObject, ostream);
    }
View Full Code Here

    }

    private void readObject(ObjectInputStream istream)
  throws IOException, ClassNotFoundException
    {
  HandleDelegate handleDelegate;
  try {    
      handleDelegate = HandleDelegateUtil.getHandleDelegate();          
  } catch ( NamingException ne ) {
            throw new EJBException("Unable to lookup HandleDelegate", ne);
        }
        ejbObject = handleDelegate.readEJBObject(istream);
    }
View Full Code Here

TOP

Related Classes of javax.ejb.spi.HandleDelegate

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.