|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas_ejb.container.JContainer
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.
Field Summary | |
java.lang.String |
fileName
|
java.lang.String |
myname
|
JStatefulPool |
statefulSessionPool
|
Constructor Summary | |
JContainer(java.lang.String name,
java.lang.String file,
java.lang.ClassLoader ld)
constructor |
Method Summary | |
BeanFactory |
addBean(BeanDesc dd)
Adds beans in container. |
protected void |
checkSecurity(java.lang.String methodSignature)
Check Security. |
int |
getBeanNb()
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader used for this Container |
org.enhydra.naming.ContainerNaming |
getContainerNaming()
return the ContainerNaming object used internally by all the EJB Container classes. |
java.util.Set |
getDataSourceDependence(java.lang.String dsName)
Management method used by the EJBServiceImpl MBean. |
int |
getEntityBMPNb()
|
int |
getEntityCMPNb()
|
java.lang.String |
getFileName()
Return the file name of the container (.xml or .jar) |
java.util.Set |
getJmsConnectionFactoryDependence(java.lang.String cfName)
Management method used by the EJBServiceImpl MBean. |
java.util.Set |
getJmsDestinationDependence(java.lang.String destName)
Management method used by the EJBServiceImpl MBean. |
JmsManager |
getJmsManager()
return the JmsManager object used internally by all the EJB Container classes. |
int |
getMessageDrivenNb()
|
java.security.Guard |
getMethodGuard()
Get the MethodGuard |
java.lang.String |
getName()
Return the name of the container |
PrincipalFactory |
getPrincipalFactory()
Get the PrincipalFactory |
java.security.Guard |
getRoleGuard()
Get the RoleGuard |
int |
getStatefulSessionNb()
|
int |
getStatelessSessionNb()
|
long |
getSwapTime()
|
javax.transaction.TransactionManager |
getTransactionManager()
return the Transaction Manager used internally by all the EJB Container classes. |
java.lang.String[] |
listBeanNames()
Return an array of bean names |
void |
registerBF(BeanFactory bf)
register a BeanFactory |
void |
registerEJB(JEntitySwitch ejb)
register an Entity that must be passivated |
void |
remove()
Remove the JOnAS container. |
void |
setBeanEnvironment(javax.naming.Context ctx,
BeanDesc dd)
Set the bean environment args ctx Context for this bean args dd Bean Deployment Descriptor throws NamingException if could not rebind objects |
void |
setContainerNaming(org.enhydra.naming.ContainerNaming naming)
set the ContainerNaming object Called by the EJB Server when starting the service. |
void |
setEjbDescriptor(DeploymentDesc ejbdesc)
Set EjbDescriptor. |
void |
setJmsManager(JmsManager jms)
set the JmsManager object Called by the EJB Server when starting ths service. |
void |
setMethodGuard(java.security.Guard methodGuard)
Set a MethodGuard |
void |
setPrincipalFactory(PrincipalFactory pf)
Set the PrincipalFactory |
void |
setRoleGuard(java.security.Guard roleGuard)
Set the RoleGuard |
void |
setSwapTime(int t)
Take into account the swapping time for the bean. |
void |
setThreadPoolSize(int sz)
set the Thread pool size. |
void |
setTransactionManager(javax.transaction.TransactionManager tm)
set the Transaction Manager. |
void |
syncAll(boolean passivate)
Try to passivate all entity bean instances |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String myname
public java.lang.String fileName
public JStatefulPool statefulSessionPool
Constructor Detail |
public JContainer(java.lang.String name, java.lang.String file, java.lang.ClassLoader ld)
Method Detail |
public java.lang.String[] listBeanNames()
listBeanNames
in interface Container
public java.lang.String getName()
getName
in interface Container
public java.lang.String getFileName()
getFileName
in interface Container
public void setMethodGuard(java.security.Guard methodGuard)
setMethodGuard
in interface Container
public java.security.Guard getMethodGuard()
getMethodGuard
in interface Container
public void setRoleGuard(java.security.Guard roleGuard)
setRoleGuard
in interface Container
public java.security.Guard getRoleGuard()
getRoleGuard
in interface Container
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface Container
public void setPrincipalFactory(PrincipalFactory pf)
setPrincipalFactory
in interface Container
public PrincipalFactory getPrincipalFactory()
getPrincipalFactory
in interface Container
public void setContainerNaming(org.enhydra.naming.ContainerNaming naming)
setContainerNaming
in interface Container
public org.enhydra.naming.ContainerNaming getContainerNaming()
getContainerNaming
in interface Container
public void setThreadPoolSize(int sz)
setThreadPoolSize
in interface Container
org.objectweb.jonas_ejb.container.Container
sz
- number of threads in the pool.public void syncAll(boolean passivate)
syncAll
in interface Container
public void setTransactionManager(javax.transaction.TransactionManager tm)
setTransactionManager
in interface Container
public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in interface Container
public void setJmsManager(JmsManager jms)
setJmsManager
in interface Container
public JmsManager getJmsManager()
getJmsManager
in interface Container
public void remove()
remove
in interface Container
public void setEjbDescriptor(DeploymentDesc ejbdesc)
public BeanFactory addBean(BeanDesc dd)
desc
- The Bean Deployment Descriptorpublic int getBeanNb()
public int getEntityBMPNb()
public int getEntityCMPNb()
public int getStatefulSessionNb()
public int getStatelessSessionNb()
public int getMessageDrivenNb()
public long getSwapTime()
public java.util.Set getDataSourceDependence(java.lang.String dsName)
dsName
- JNDI name of the data sourcepublic java.util.Set getJmsDestinationDependence(java.lang.String destName)
destName
- JNDI name of a JMS destinationpublic java.util.Set getJmsConnectionFactoryDependence(java.lang.String cfName)
cfName
- JNDI name of a JMS Connection Factory.public void registerEJB(JEntitySwitch ejb)
public void registerBF(BeanFactory bf)
public void setSwapTime(int t)
public void setBeanEnvironment(javax.naming.Context ctx, BeanDesc dd) throws javax.naming.NamingException
protected void checkSecurity(java.lang.String methodSignature)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |