Java Doc for JContainer.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » container » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas_ejb.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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)


Field Summary
final public static  StringDEFAULT_FACTORY_CLASS_NAME
     This class is the default factory class name used for the Entity bean.

Constructor Summary
public  JContainer(String name, String extFileName, String file, ClassLoader ld)
    

Method Summary
public synchronized  BeanFactoryaddBean(BeanDesc dd)
     Adds beans in container.
protected  voidcheckSecurity(String ejbName, EJBInvocation ejbInv, boolean inRunAs)
     Check Security.
public  BeanFactorygetBeanFactory(String ejbName)
     Get the bean factory for the given bean.
public  intgetBeanNb()
    
public  ClassLoadergetClassLoader()
    
public  ContainerNaminggetContainerNaming()
     used internally by all the EJB Container classes.
public  StringgetContextId()
    
public  SetgetDataSourceDependence(String dsName)
     Management method used by the EJBServiceImpl MBean.
public  StringgetEarFileName()
     get the name of the ear application containing this container.
public  intgetEntityBMPNb()
    
public  intgetEntityCMPNb()
    
public  StringgetExternalFileName()
    
public  StringgetFileName()
    
public  SetgetJmsConnectionFactoryDependence(String cfName)
     Management method used by the EJBServiceImpl MBean.
public  SetgetJmsDestinationDependence(String destName)
     Management method used by the EJBServiceImpl MBean.
public  JmsManagergetJmsManager()
     used internally by all the EJB Container classes.
public  SetgetMailFactoryDependence(String mfName)
     Management method used by the EJBServiceImpl MBean.
public  intgetMessageDrivenNb()
    
public  StringgetName()
    
public  PermissionManagergetPermissionManager()
    
public  PrincipalFactorygetPrincipalFactory()
    
public  intgetStatefulSessionNb()
    
public  intgetStatelessSessionNb()
    
public  StringgetTmpDirName()
    
public  TransactionManagergetTransactionManager()
     return the Transaction Manager used internally by all the EJB Container classes.
public  WorkManagergetWorkManager()
    
public  booleanisInEarCase()
     Return true if only if this ejbjar is in an ear file.
public  String[]listBeanNames()
    
public  voidregisterBF(BeanFactory bf)
    
public  voidregisterBFS(BeanFactory bf)
    
public synchronized  voidremove()
     Remove the JOnAS container and unregister all beans.
public  voidsetBeanEnvironment(Context ctx, BeanDesc dd)
    
public  voidsetContainerNaming(ContainerNaming naming)
     set the ContainerNaming object Called by the EJB Server when starting the service.
public  voidsetEarFileName(String fileName)
     set the name of the ear application containing this container.
public  voidsetJmsManager(JmsManager jms)
     set the JmsManager object Called by the EJB Server when starting ths service.
public  voidsetPermissionManager(PermissionManager permissionManager)
    
public  voidsetPrincipalFactory(PrincipalFactory pf)
     Set the PrincipalFactory.
public  voidsetSecurity(boolean b)
    
public  voidsetSwapTime(int t)
     Take into account the swapping time for the bean.
public  voidsetTransactionManager(TransactionManager tm)
     set the Transaction Manager.
public  voidsetWorkManager(WorkManager wm)
     set the Work Manager.
public synchronized  voidstoreAll(Transaction tx)
    
public synchronized  voidsyncAll(boolean store, boolean passivate)
    

Field Detail
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.




Constructor Detail
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




Method Detail
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



getName
public String getName()(Code)
name of this Container



getPermissionManager
public PermissionManager getPermissionManager()(Code)
Gets the permission manager the permission manager



getPrincipalFactory
public PrincipalFactory getPrincipalFactory()(Code)
the PrincipalFactory of the Container



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



getTmpDirName
public String getTmpDirName()(Code)



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.