org.objectweb.jonas.resource
Class ResourceServiceImpl
java.lang.Object
|
+--org.objectweb.jonas.service.AbsServiceImpl
|
+--org.objectweb.jonas.resource.ResourceServiceImpl
- All Implemented Interfaces:
- ResourceService, ResourceServiceImplMBean, Service
- public class ResourceServiceImpl
- extends AbsServiceImpl
- implements ResourceService, ResourceServiceImplMBean
JCA resource service implmentation
- Author:
- Philippe Coq
Contributor(s):
JOnAS 2.4 Sebastien Chassande-Barrioz (sebastien.chassande@inrialpes.fr)
JOnAS 3.0 Eric Hardesty (Eric.Hardesty@bull.com)
Method Summary |
void |
createResourceAdapter(java.lang.String resName)
Create a Resource Adapter |
void |
doInit(javax.naming.Context ctx)
- Get the global jndi context
- Get the list of the resource adapters. |
void |
doStart()
|
void |
doStop()
|
static java.lang.Object |
getConnectionFactory(java.lang.String jndiName)
get the ResourceAdapter matching the raname
will be used in ConnectionFactoryJNDIHandler class at lookup time |
java.lang.Integer |
getCurrentNumberOfResource()
MBean method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_LIST
public static final java.lang.String RESOURCE_LIST
CLASS
public static final java.lang.String CLASS
AUTOLOADDIR
public static final java.lang.String AUTOLOADDIR
PARSINGWITHVALIDATION
public static final java.lang.String PARSINGWITHVALIDATION
MANAGED_CONNECTION_FACTORY_CLASS
public final java.lang.String MANAGED_CONNECTION_FACTORY_CLASS
JNDI_NAME
public static final java.lang.String JNDI_NAME
PRINTWRITER
public static final java.lang.String PRINTWRITER
MONITOR_FACTORY
public static final java.lang.String MONITOR_FACTORY
ResourceServiceImpl
public ResourceServiceImpl()
doInit
public void doInit(javax.naming.Context ctx)
- - Get the global jndi context
- Get the list of the resource adapters. The list is reachable in the
Context parameter under the name RESOURCE_LIST.
- Get the transaction manager into the jndi
- Instanciate the connection manager
- Overrides:
doInit
in class AbsServiceImpl
doStart
public void doStart()
throws ServiceException
- Overrides:
doStart
in class AbsServiceImpl
doStop
public void doStop()
throws ServiceException
- Overrides:
doStop
in class AbsServiceImpl
createResourceAdapter
public void createResourceAdapter(java.lang.String resName)
throws java.lang.Exception
- Description copied from interface:
ResourceService
- Create a Resource Adapter
- Specified by:
createResourceAdapter
in interface ResourceService
- Following copied from interface:
org.objectweb.jonas.resource.ResourceService
- Parameters:
String
- name of the resource adapter.
the configuration information for this resource adapter
must be found in the xml files in the rar file
being deployed
getConnectionFactory
public static java.lang.Object getConnectionFactory(java.lang.String jndiName)
- get the ResourceAdapter matching the raname
will be used in ConnectionFactoryJNDIHandler class at lookup time
getCurrentNumberOfResource
public java.lang.Integer getCurrentNumberOfResource()
- MBean method
- Specified by:
getCurrentNumberOfResource
in interface ResourceServiceImplMBean
- Returns:
- Integer Total Number of Resourcesource available in JOnAS