javax.ejb

Interface EJBMetaData

public interface EJBMetaData

The main ejb context.

Method Summary

EJBHome
getEJBHome()
Class<T>
getHomeInterfaceClass()
Class<T>
getPrimaryKeyClass()
Class<T>
getRemoteInterfaceClass()
boolean
isSession()
boolean
isStatelessSession()

Method Details

getEJBHome

public EJBHome getEJBHome()
Usages and Demos :

View More Examples of getEJBHome()
   1: import javax.naming.NamingException;
   2: import javax.ejb.EJBMetaData;
   3: import javax.rmi.PortableRemoteObject;
   4:         ...
   5: 
   6:          EJBMetaData meta = c_home.getEJBMetaData();
   7: 
   8:         ...
   9:             Integer pk = new Integer(1);
  10:             Object ref2 = meta.getEJBHome();
  11:             CabinHomeRemote c_home2 = (CabinHomeRemote)

View Full Code Here
   1: import com.hellking.study.ejb.cabin.*;
   2: import javax.ejb.EJBMetaData;
   3: 
   4:         ...
   5: 
   6:          EJBMetaData meta = c_home.getEJBMetaData();
   7: 
   8:         ...
   9:             Integer pk = new Integer(1);
  10:             Object ref2 = meta.getEJBHome();
  11:             CabinHome c_home2 = (CabinHome)

View Full Code Here

getHomeInterfaceClass

public Class<T> getHomeInterfaceClass()

getPrimaryKeyClass

public Class<T> getPrimaryKeyClass()
Usages and Demos :

View More Examples of getPrimaryKeyClass()
   1: import javax.ejb.EJBHome;
   2: import javax.ejb.EJBMetaData;
   3: import java.rmi.RemoteException;
   4:         ...
   5:         BookHome home = establishBookHome();
   6:         EJBMetaData md = home.getEJBMetaData();
   7:         Class homeClass,rmtClass,pkClass;
   8:         ...
   9:         rmtClass=md.getRemoteInterfaceClass();
  10:         pkClass=md.getPrimaryKeyClass();

View Full Code Here
   1: import javax.ejb.HomeHandle;
   2: import javax.ejb.EJBMetaData;
   3: 
   4:         ...
   5:          getLog().debug("Get the Meta-data object...");
   6:          EJBMetaData md = anotherHome.getEJBMetaData();
   7:          assertTrue(md != null);
   8:         ...
   9:          String homeInterface = md.getHomeInterfaceClass().getName();
  10:          String primaryKey = md.getPrimaryKeyClass().getName();
  11:          String remoteInterface = md.getRemoteInterfaceClass().getName();

View Full Code Here

getRemoteInterfaceClass

public Class<T> getRemoteInterfaceClass()
Usages and Demos :

View More Examples of getRemoteInterfaceClass()
   1: import javax.ejb.EJBHome;
   2: import javax.ejb.EJBMetaData;
   3: import java.rmi.RemoteException;
   4:         ...
   5:         StatefulLoginHome home = establishStatefulLoginHome();
   6:         EJBMetaData md = home.getEJBMetaData();
   7:         Class homeClass,rmtClass;
   8:         ...
   9:         homeClass=md.getHomeInterfaceClass();
  10:         rmtClass=md.getRemoteInterfaceClass();

View Full Code Here
   1: import javax.ejb.EJBHome;
   2: import javax.ejb.EJBMetaData;
   3: import java.rmi.RemoteException;
   4:         ...
   5:         BookHome home = establishBookHome();
   6:         EJBMetaData md = home.getEJBMetaData();
   7:         Class homeClass,rmtClass,pkClass;
   8:         ...
   9:         homeClass=md.getHomeInterfaceClass();
  10:         rmtClass=md.getRemoteInterfaceClass();
  11:         pkClass=md.getPrimaryKeyClass();

View Full Code Here
   1: import javax.ejb.HomeHandle;
   2: import javax.ejb.EJBMetaData;
   3: 
   4:         ...
   5:          getLog().debug("Get the Meta-data object...");
   6:          EJBMetaData md = anotherHome.getEJBMetaData();
   7:          assertTrue(md != null);
   8:         ...
   9:          String primaryKey = md.getPrimaryKeyClass().getName();
  10:          String remoteInterface = md.getRemoteInterfaceClass().getName();
  11:          getLog().debug("  Home Interface  : " + homeInterface);

View Full Code Here

isSession

public boolean isSession()

isStatelessSession

public boolean isStatelessSession()