Java Doc for EJBServiceImpl.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » 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.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.service.AbsServiceImpl
   org.objectweb.jonas.container.EJBServiceImpl

EJBServiceImpl
public class EJBServiceImpl extends AbsServiceImpl implements EJBService,EJBServiceImplMBean(Code)
Implementation of the EJB Container Service for jonas. This class works only with jonas_ejb classes.
author:
   Philippe Coq
author:
   Jeff Mesnil (Security)
author:
   Markus Karg (Novell port)
author:
   Christophe Ney (for making easier Enhydra integration)
author:
   Adriana Danes (complete management methods)
author:
   Florent Benoit & Ludovic Bert (Ear service, deployJars, undeployJars)
author:
   Benjamin Bonnet (max thread pool size)
author:
   Michel-Ange Anton (JSR77 MBean : EJBModule)
author:
   Adriana Danes (JSR77)


Field Summary
final public static  StringAUTOLOADDIR
    
final public static  StringAUTO_GENIC
    
final public static  StringAUTO_GENIC_ARGS
    
final public static  StringBMP
    
final public static  StringCLASS
    
final public static  StringCMP
    
final static  intDATASOURCE
    
final public static  StringDESCRIPTORS
    
final protected static  StringEJBJARS_DIR
     The name of the directory containing the ejb-jar files.
final static  intJMS_DESTINATION
    
final static  intJMS_FACTORY
    
final protected static  StringJONAS_BASE
     The name of the JONAS_BASE directory.
final public static  StringJONAS_EJB
    
final static  intMAIL_FACTORY
    
final public static  StringMAXWORKTHREADS
    
final public static  StringMINWORKTHREADS
    
final public static  StringPARSINGWITHVALIDATION
    
final public static  StringTHREADWAITTIMEOUT
    


Method Summary
public static  StringbuildEJBModuleName(URL pUrl)
     Build the EJBModule name.
public static  StringbuildEJBModuleName(String pFilename)
     Build the EJBModule name.
public  voidcheckGenIC(String fileName, URL[] urls)
     Check that GenIC have been applied on the given ejb-jar file If it was not done, it run GenIC against the file.
public  StringcreateContainer(Context ctx)
     Create a JOnAS Container for all the beans that are described in a .xml file, or belong to .jar file. The ObjectName of the MBean associated to the container (i.e.
public  StringcreateContainer(String file)
    
public  StringcreateContainerMBean(String file)
     MBean method allowing to create an EJB container for the EJBs contained in a .jar (or .xml) file.
public  voiddeployJars(Context ctx)
     Deploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader).
public  voiddoInit(Context ctx)
     Init the Service.
public  voiddoStart()
     Start the Service Initialization of the service is already done.
public  voiddoStop()
     Stop the service: - Remove all JOnAS Containers.
public  ListgetAutoloadDirectories()
     Return the list of "autoload" directories for EJB containers.
public  ContainergetContainer(String fileName)
    
public  IntegergetCurrentNumberOfContainer()
    
public  SetgetDataSourceDependence(String dsName)
    
 SetgetDependence(String name, int type)
     This method is used by the getXXXDependence MBean methods.
public  ListgetDeployableJars()
     Return the list of installed EJB container ready to deploy.
public  ListgetDeployedJars()
     Return the list of all loaded EJB container.
public  StringgetEjbjarsDirectory()
     Return the Ejbjars directory.
public  ListgetInstalledJars()
     Return the list of installed EJB containers.
public  SetgetJmsConnectionFactoryDependence(String cfName)
    
public  SetgetJmsDestinationDependence(String destName)
    
public  SetgetMailFactoryDependence(String mfName)
    
public  IntegergetTotalCurrentNumberOfBMPType()
    
public  IntegergetTotalCurrentNumberOfBeanType()
    
public  IntegergetTotalCurrentNumberOfCMPType()
    
public  IntegergetTotalCurrentNumberOfMDBType()
    
public  IntegergetTotalCurrentNumberOfSBFType()
    
public  IntegergetTotalCurrentNumberOfSBLType()
    
public  JWorkManagergetWorkManager()
    
public  BooleanisJarDeployed(String fileName)
     Test if the specified file is already deployed (if a container is created for this jar).
public  booleanisJarDeployedByWorkName(String workFileName)
     Test if the specified jar identified with its work name is already deployed (if a container is created for this jar).
public  booleanisJarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the jar file.
public  Container[]listContainers()
    
public  voidremoveCache(ClassLoader earClassLoader)
     Make a cleanup of the cache of deployment descriptor.
public  voidremoveContainer(Container cont)
    
public  voidremoveContainer(String fileName)
    
public  voidremoveContainer(Container cont, boolean isEarCase)
     Remove the specified container.
public  voidremoveContainerMBean(String fileName)
    
public  voidsyncAllEntities(boolean passivate)
    
public  voidunDeployJars(URL[] urls)
     Undeploy the given ejb-jars of an ear file.

Field Detail
AUTOLOADDIR
final public static String AUTOLOADDIR(Code)
autoloaddir property



AUTO_GENIC
final public static String AUTO_GENIC(Code)
Auto-GenIC is enabled or disabled ?



AUTO_GENIC_ARGS
final public static String AUTO_GENIC_ARGS(Code)
Arguments for the Auto-GenIC



BMP
final public static String BMP(Code)
BeanManaged Management properties



CLASS
final public static String CLASS(Code)
EJB service class



CMP
final public static String CMP(Code)
ContainerManaged Management properties



DATASOURCE
final static int DATASOURCE(Code)
DataSource Resource Type



DESCRIPTORS
final public static String DESCRIPTORS(Code)
descriptors property



EJBJARS_DIR
final protected static String EJBJARS_DIR(Code)
The name of the directory containing the ejb-jar files.



JMS_DESTINATION
final static int JMS_DESTINATION(Code)
JMS Destination Resource Type



JMS_FACTORY
final static int JMS_FACTORY(Code)
JMS Factory Resource Type



JONAS_BASE
final protected static String JONAS_BASE(Code)
The name of the JONAS_BASE directory.



JONAS_EJB
final public static String JONAS_EJB(Code)
base for properties



MAIL_FACTORY
final static int MAIL_FACTORY(Code)
Mail Factory Resource Type



MAXWORKTHREADS
final public static String MAXWORKTHREADS(Code)
Max Work Thread property name



MINWORKTHREADS
final public static String MINWORKTHREADS(Code)
Min Work Thread property name



PARSINGWITHVALIDATION
final public static String PARSINGWITHVALIDATION(Code)
parsing with validation property



THREADWAITTIMEOUT
final public static String THREADWAITTIMEOUT(Code)
Thread Wait Timeout property name





Method Detail
buildEJBModuleName
public static String buildEJBModuleName(URL pUrl)(Code)
Build the EJBModule name.
Parameters:
  pUrl - The URL of Jar file The EJBModule name



buildEJBModuleName
public static String buildEJBModuleName(String pFilename)(Code)
Build the EJBModule name.
Parameters:
  pFilename - The name of Jar file The EJBModule name



checkGenIC
public void checkGenIC(String fileName, URL[] urls)(Code)
Check that GenIC have been applied on the given ejb-jar file If it was not done, it run GenIC against the file.
Parameters:
  fileName - given EJB-JAR file.
Parameters:
  urls - Array of URLs used as CLASSPATH during EJB compilation



createContainer
public String createContainer(Context ctx) throws Exception(Code)
Create a JOnAS Container for all the beans that are described in a .xml file, or belong to .jar file. The ObjectName of the MBean associated to the container (i.e. tothe deployed module)
throws:
  Exception - if an error occur during the creation of the container.



createContainer
public String createContainer(String file) throws Exception(Code)



createContainerMBean
public String createContainerMBean(String file) throws Exception(Code)
MBean method allowing to create an EJB container for the EJBs contained in a .jar (or .xml) file.
Parameters:
  file - Name of the file to be deployed The ObjectName of the MBean associated to the container (to thedeployed module)



deployJars
public void deployJars(Context ctx) throws ServiceException(Code)
Deploy the given ejb-jars of an ear file with the specified parent classloader (ear classloader). (This method is only used for the ear applications, not for the ejb-jar applications).
Parameters:
  ctx - the context containing the configuration to deploy theejbjars.
This context contains the following parameters :
- earRootUrl the root of the ear application.
- earURLfilename of the EAR.
- earClassLoader the ear classLoader ofthe ear application.
- ejbClassLoader the ejb classLoader forthe ejbjars.
- jarURLs the list of the urls of the ejb-jarsto deploy.
- roleNames the role names of the security-role.

throws:
  ServiceException - if an error occurs during the deployment.



doInit
public void doInit(Context ctx) throws ServiceException(Code)
Init the Service. Configuration information is passed thru a Context object.



doStart
public void doStart() throws ServiceException(Code)
Start the Service Initialization of the service is already done.



doStop
public void doStop()(Code)
Stop the service: - Remove all JOnAS Containers. - Unbinds all the EJBHome names from JNDI



getAutoloadDirectories
public List getAutoloadDirectories()(Code)
Return the list of "autoload" directories for EJB containers. The list of all "autoload" directories



getContainer
public Container getContainer(String fileName)(Code)
Get the Container by its file name (.xml or .jar)
Parameters:
  fileName - given file name on which Container



getCurrentNumberOfContainer
public Integer getCurrentNumberOfContainer()(Code)
MBean method Integer Total Number of Container currently in JOnAS



getDataSourceDependence
public Set getDataSourceDependence(String dsName)(Code)
MBean method the ObjectName of all the ejbs using this datasource.



getDependence
Set getDependence(String name, int type)(Code)
This method is used by the getXXXDependence MBean methods. It gathers the ObjectNames of the EJBs using a given resource.
Parameters:
  name - the resource name the ObjectNames of all the ejb using this resource



getDeployableJars
public List getDeployableJars() throws Exception(Code)
Return the list of installed EJB container ready to deploy. The list of deployable EJB container
throws:
  Exception - when cannot get installed jars list



getDeployedJars
public List getDeployedJars()(Code)
Return the list of all loaded EJB container. The list of deployed EJB container



getEjbjarsDirectory
public String getEjbjarsDirectory()(Code)
Return the Ejbjars directory. The Ejbjars directory



getInstalledJars
public List getInstalledJars() throws Exception(Code)
Return the list of installed EJB containers. The JAR files or the directories with expanded EJB container are searched in JONAS_BASE/ejbjars and all ejbjar directories 'autoload'. The list of JAR files or the directories with expanded EJBcontainer found
throws:
  Exception - if the list can't be retrieved



getJmsConnectionFactoryDependence
public Set getJmsConnectionFactoryDependence(String cfName)(Code)
Management method the ObjectName of all the ejb using this Connection Factory.



getJmsDestinationDependence
public Set getJmsDestinationDependence(String destName)(Code)
Manangement method the ObjectName of all the ejb using this destination.



getMailFactoryDependence
public Set getMailFactoryDependence(String mfName)(Code)
Management method the ObjectName of all the ejb using a given Mail Factory.



getTotalCurrentNumberOfBMPType
public Integer getTotalCurrentNumberOfBMPType()(Code)
MBean method Integer Total Number of Bmp Type currently in JOnAS



getTotalCurrentNumberOfBeanType
public Integer getTotalCurrentNumberOfBeanType()(Code)
MBean method Integer Total Number of Bean Type currently in JOnAS



getTotalCurrentNumberOfCMPType
public Integer getTotalCurrentNumberOfCMPType()(Code)
MBean method Integer Total Number of Cmp Type currently in JOnAS



getTotalCurrentNumberOfMDBType
public Integer getTotalCurrentNumberOfMDBType()(Code)
MBean method Integer Total Number of Mdb Type currently in JOnAS



getTotalCurrentNumberOfSBFType
public Integer getTotalCurrentNumberOfSBFType()(Code)
MBean method Integer Total Number of Sbf Type currently in JOnAS



getTotalCurrentNumberOfSBLType
public Integer getTotalCurrentNumberOfSBLType()(Code)
MBean method Integer Total Number of Sbl Type currently in JOnAS



getWorkManager
public JWorkManager getWorkManager()(Code)
Returns the WorkManager instance



isJarDeployed
public Boolean isJarDeployed(String fileName)(Code)
Test if the specified file is already deployed (if a container is created for this jar).
Parameters:
  fileName - the name of the jar file true if the jar was deployed, false otherwise



isJarDeployedByWorkName
public boolean isJarDeployedByWorkName(String workFileName)(Code)
Test if the specified jar identified with its work name is already deployed (if a container is created for this jar).
Parameters:
  workFileName - the internal name of the jar file (working copy) true if the jar was deployed, false otherwise



isJarLoaded
public boolean isJarLoaded(String fileName)(Code)
Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the jar file. true if the jar is deployed, else false.



listContainers
public Container[] listContainers()(Code)
List JOnAS container created by EJB Service



removeCache
public void removeCache(ClassLoader earClassLoader)(Code)
Make a cleanup of the cache of deployment descriptor. This method must be invoked after the ear deployment by the EAR service. the deployment of an ear by .
Parameters:
  earClassLoader - the ClassLoader of the ear application to removefrom the cache.



removeContainer
public void removeContainer(Container cont)(Code)
Remove a JOnAS container



removeContainer
public void removeContainer(String fileName) throws Exception(Code)



removeContainer
public void removeContainer(Container cont, boolean isEarCase)(Code)
Remove the specified container.
Parameters:
  cont - the container to remove.
Parameters:
  isEarCase - true if only if the removeContainer method is called inthe ear case, false otherwise.



removeContainerMBean
public void removeContainerMBean(String fileName) throws Exception(Code)
MBean method remove a container application
Parameters:
  fileName - the Name of this container



syncAllEntities
public void syncAllEntities(boolean passivate)(Code)
Synchronized all entity bean containers
Parameters:
  passivate - passivate instances after synchronization.



unDeployJars
public void unDeployJars(URL[] urls)(Code)
Undeploy the given ejb-jars of an ear file. (This method is only used for the ear applications, not for the ejb-jar applications).
Parameters:
  urls - the list of the urls of the ejb-jars to undeploy.



Methods inherited from org.objectweb.jonas.service.AbsServiceImpl
abstract protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doStart() throws ServiceException(Code)(Java Doc)
abstract protected void doStop() throws ServiceException(Code)(Java Doc)
public String getDomainName()(Code)(Java Doc)
public String getJonasServerName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void init(Context ctx) throws ServiceException(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void start() throws ServiceException(Code)(Java Doc)
public void stop() throws ServiceException(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.