Name

EJBMetaData

Synopsis

This interface provides meta-data object a particular type of enterprise JavaBean. It allows you to query for the bean type’s home interface, the Class for its home interface, the Class of its primary key (for entity beans only), the Class for its remote interface, and whether the bean is a session bean.

This meta-data might be used by EJB development tools to introspect on additional aspects of EJB classes that can’t be obtained from the Object introspection methods.

Any implementations of this interface are required to be serializable, and must be valid for use over RMI.

public interface EJBMetaData {
// Property Accessor Methods (by property name)
   public abstract EJBHome getEJBHome();  
   public abstract Class getHomeInterfaceClass();  
   public abstract Class getPrimaryKeyClass();  
   public abstract Class getRemoteInterfaceClass();  
   public abstract boolean isSession();  
   public abstract boolean isStatelessSession();                 // 1.1
}

Returned By

EJBHome.getEJBMetaData()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.