org.objectweb.jonas.container
Class EJB
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.container.EJB
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean
- Direct Known Subclasses:
- EntityBean, MessageDrivenBean, SessionBean
- public class EJB
- extends J2EEManagedObject
This class implements the EJB type specified in JSR77
- Author:
- Adriana Danes
Constructor Summary |
EJB(java.lang.String objectName,
JFactory ejbToManage)
|
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ejbToManage
protected JFactory ejbToManage
- The Bean to manage
desc
protected BeanDesc desc
fileName
protected java.lang.String fileName
EJB
public EJB(java.lang.String objectName,
JFactory ejbToManage)
getName
public java.lang.String getName()
- Returns:
- String The Name of this JFactory
getFileName
public java.lang.String getFileName()
- Returns:
- Ejb File Name
getAllJdbcResourceAdapterName
public java.util.Hashtable getAllJdbcResourceAdapterName()
- Construct Hashtable containing for each ResourceRef jndi name
its corresponding the ResourceAdapter MBean OBJECT_NAME.
- Returns:
- Hashtable table
getAllDataSourceName
public java.util.Hashtable getAllDataSourceName()
- Construct Hashtable containing for each ResourceRef jndi name
its corresponding the datasource name or empty String if no
corresponding datasource was found.
- Returns:
- Hashtable table
getAllJMSConnectionFactoryName
public java.util.Set getAllJMSConnectionFactoryName()
- Returns:
- Set The Name set of the Connection Factories
getAllMailFactorySName
public java.util.Hashtable getAllMailFactorySName()
- Returns:
- Hashtable which maps the JNDI names provided by the DD to the Session Mail factyory resources
known by the Mail Service
getAllMailFactoryMName
public java.util.Hashtable getAllMailFactoryMName()
- Returns:
- Hashtable which maps the JNDI names provided by the DD to the MimePartDataSource Mail factyory resources
known by the Mail Service
getAllJMSDestinationName
public java.util.Set getAllJMSDestinationName()
- Returns:
- Set The Name set of the JMS Destinations
getAllURLs
public java.util.Set getAllURLs()
- Returns:
- Set The URL ressources used by the bean
getPoolSize
public int getPoolSize()
- Returns:
- The current instance pool size
getMinPoolSize
public int getMinPoolSize()
- Returns:
- min-pool-size value
getMaxCacheSize
public int getMaxCacheSize()
- Returns:
- max-cache-size value
getCacheSize
public int getCacheSize()
- Returns:
- nb of instances (current cache size)
reduceCacheSize
public void reduceCacheSize()
- Reduce number of instances
getEjbClass
public java.lang.String getEjbClass()
- Returns:
- String the JFactory Class
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- String the displayName of the bean, or bean name if not defined.
getJndiName
public java.lang.String getJndiName()
- Returns:
- String the JNDI Name of the bean.
getHomeClass
public java.lang.String getHomeClass()
- Returns:
- String the HomeClass of the bean.
getRemoteClass
public java.lang.String getRemoteClass()
- Returns:
- String the RemoteClass of the bean.
getLocalHomeClass
public java.lang.String getLocalHomeClass()
- Returns:
- String the LocalHomeClass of the bean.
getLocalClass
public java.lang.String getLocalClass()
- Returns:
- String the LocalClass of the bean.