| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JContainer
JContainer | public class JContainer implements Container(Code) | | This class represents an EJB container. A container is where an enterprise
Bean object lives. All beans from a same ejb-jar file are installed in a
single container. For each EJB installed, the container provides a factory
and makes it available in the JNDI name space. The JContainer basically
manages a set of BeanFactory objects.
author: Philippe Coq author: Jeff Mesnil (Security) author: Christophe Ney (Making easier Enhydra integration) author: Philippe Durieux (New architecture for local interfaces) author: Florent Benoit (Ear service, ejb-link, JACC security) author: Ludovic Bert (Ear service, ejb-link) author: Benjamin Bonnet (max size for thread pool) |
DEFAULT_FACTORY_CLASS_NAME | final public static String DEFAULT_FACTORY_CLASS_NAME(Code) | | This class is the default factory class name used for the Entity bean.
|
JContainer | public JContainer(String name, String extFileName, String file, ClassLoader ld)(Code) | | constructor
Parameters: name - name of the container. Parameters: extFileName - external file name Parameters: file - file name (.jar or .xml) Parameters: ld - the class loader to be used |
addBean | public synchronized BeanFactory addBean(BeanDesc dd)(Code) | | Adds beans in container. This method is not part of JContainer interface,
although it is used by JOnAS Server, because we don't want to get all
BeanDesc classes (jonas_ejb.deployment.api) LATER: Replace this by
setDeploymentDesc ?
Parameters: dd - The Bean Deployment Descriptor The bean factory created for this bean. throws: EJBException - |
checkSecurity | protected void checkSecurity(String ejbName, EJBInvocation ejbInv, boolean inRunAs)(Code) | | Check Security. No control for Message Driven Beans
Parameters: ejbName - name of the EJB of which do control Parameters: ejbInv - object containing security signature of the method, args ofmethod, etc Parameters: inRunAs - bean calling this method is running in run-as mode or not ? |
getBeanFactory | public BeanFactory getBeanFactory(String ejbName)(Code) | | Get the bean factory for the given bean.
Parameters: ejbName - the name of the bean the bean factory for this bean |
getBeanNb | public int getBeanNb()(Code) | | total Number of Beans |
getClassLoader | public ClassLoader getClassLoader()(Code) | | the classloader used for this Container |
getContainerNaming | public ContainerNaming getContainerNaming()(Code) | | used internally by all the EJB Container classes.
the ContainerNaming object |
getContextId | public String getContextId()(Code) | | Gets the context ID of this container (for jacc)
contextID used for JACC |
getDataSourceDependence | public Set getDataSourceDependence(String dsName)(Code) | | Management method used by the EJBServiceImpl MBean. Determine which are
the ejbs using a given data source.
Parameters: dsName - JNDI name of the data source a set of Properties describing the beans that use the data source |
getEarFileName | public String getEarFileName()(Code) | | get the name of the ear application containing this container.
the name of the ear application containing this container. |
getEntityBMPNb | public int getEntityBMPNb()(Code) | | int Number of BMP type currently in this container |
getEntityCMPNb | public int getEntityCMPNb()(Code) | | int Number of CMP type currently in this container |
getExternalFileName | public String getExternalFileName()(Code) | | the external file name of the container |
getFileName | public String getFileName()(Code) | | the file name of the container (.xml or .jar) |
getJmsConnectionFactoryDependence | public Set getJmsConnectionFactoryDependence(String cfName)(Code) | | Management method used by the EJBServiceImpl MBean. Determine which are
the ejbs using a JMS Connection Factory.
Parameters: cfName - JNDI name of a JMS Connection Factory. a set of Properties describing the beans that use the JMSConnection Factory. |
getJmsDestinationDependence | public Set getJmsDestinationDependence(String destName)(Code) | | Management method used by the EJBServiceImpl MBean. Determine which are
the beans using a JMS destination.
Parameters: destName - JNDI name of a JMS destination a set of Properties describing the ejbs that use the JMSdestination. |
getJmsManager | public JmsManager getJmsManager()(Code) | | used internally by all the EJB Container classes.
the JmsManager object |
getMailFactoryDependence | public Set getMailFactoryDependence(String mfName)(Code) | | Management method used by the EJBServiceImpl MBean. Determine which are
the ejbs using a Mail Factory.
Parameters: mfName - JNDI name of a Mail Factory. a set of Properties describing the beans that use the given MailFactory. |
getMessageDrivenNb | public int getMessageDrivenNb()(Code) | | int Number of MDB type currently in this container |
getPermissionManager | public PermissionManager getPermissionManager()(Code) | | Gets the permission manager
the permission manager |
getStatefulSessionNb | public int getStatefulSessionNb()(Code) | | int Number of SBF type currently in this container |
getStatelessSessionNb | public int getStatelessSessionNb()(Code) | | int Number of SBL type currently in this container |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | return the Transaction Manager used internally by all the EJB Container
classes.
the Transaction Manager |
getWorkManager | public WorkManager getWorkManager()(Code) | | the WorkManager unique instance |
isInEarCase | public boolean isInEarCase()(Code) | | Return true if only if this ejbjar is in an ear file.
true if only if this ejbjar is in an ear file. |
listBeanNames | public String[] listBeanNames()(Code) | | List of beans hosted in this Container |
registerBF | public void registerBF(BeanFactory bf)(Code) | | register a BeanFactory
Parameters: bf - The Bean Factory to be registered |
registerBFS | public void registerBFS(BeanFactory bf)(Code) | | register a BeanFactory for Sync
Parameters: bf - The Bean Factory to be registered |
remove | public synchronized void remove()(Code) | | Remove the JOnAS container and unregister all beans.
|
setBeanEnvironment | public void setBeanEnvironment(Context ctx, BeanDesc dd) throws NamingException(Code) | | Set the bean environment
Parameters: ctx - Context for this bean Parameters: dd - Bean Deployment Descriptor throws: NamingException - if could not rebind objects |
setContainerNaming | public void setContainerNaming(ContainerNaming naming)(Code) | | set the ContainerNaming object Called by the EJB Server when starting the
service.
Parameters: naming - the ContainerNaming object |
setEarFileName | public void setEarFileName(String fileName)(Code) | | set the name of the ear application containing this container.
Parameters: fileName - the name of the ear application containing thiscontainer. |
setJmsManager | public void setJmsManager(JmsManager jms)(Code) | | set the JmsManager object Called by the EJB Server when starting ths
service.
Parameters: jms - the JmsManager |
setPermissionManager | public void setPermissionManager(PermissionManager permissionManager)(Code) | | Set the permission manager object
Parameters: permissionManager - permission manager object |
setPrincipalFactory | public void setPrincipalFactory(PrincipalFactory pf)(Code) | | Set the PrincipalFactory. This factory can be JOnAS Server dependant. The
Container makes no assumption on how to get the Principal.
Parameters: pf - the PrincipalFactory |
setSecurity | public void setSecurity(boolean b)(Code) | | Set the security flag to enable or disable security
Parameters: b - true or false to enable/disable security |
setSwapTime | public void setSwapTime(int t)(Code) | | Take into account the swapping time for the bean.
Parameters: t - time in seconds (t = 0 no time out) |
setTransactionManager | public void setTransactionManager(TransactionManager tm)(Code) | | set the Transaction Manager. Called by the EJB Server when starting the
service.
Parameters: tm - the Transaction Manager. |
setWorkManager | public void setWorkManager(WorkManager wm)(Code) | | set the Work Manager. Called by the EJB Server when starting the
service.
Parameters: wm - the Work Manager. |
storeAll | public synchronized void storeAll(Transaction tx)(Code) | | Try to store all entity bean instances modified in the transaction
this method has been introduced to fix bug #305711
it's, may be, bad for performance
Parameters: tx - |
syncAll | public synchronized void syncAll(boolean store, boolean passivate)(Code) | | Try to passivate all entity bean instances
Parameters: store - True if store even if passivationTimeout not reached Parameters: passivate - true if bean instances will be released after havingbeen written on storage. |
|
|
|