|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.resource.ResourceServiceImpl
JCA resource service implmentation
Field Summary | |
static java.lang.String |
AUTOLOADDIR
|
static java.lang.String |
CLASS
|
static java.lang.String |
JNDI_NAME
|
java.lang.String |
MANAGED_CONNECTION_FACTORY_CLASS
|
static java.lang.String |
MONITOR_FACTORY
|
static java.lang.String |
PARSINGWITHVALIDATION
|
static java.lang.String |
PRINTWRITER
|
static java.lang.String |
RESOURCE_LIST
|
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
ResourceServiceImpl()
|
Method Summary | |
void |
createResourceAdapter(javax.naming.Context ctx)
Create a Resource Adapter |
void |
deployRars(javax.naming.Context ctx)
Deploy the given rars of an ear file with the specified parent classloader (ear classloader). |
void |
doInit(javax.naming.Context ctx)
- Get the global jndi context - Get the list of the resource adapters. |
void |
doStart()
Abstract start-up method to be implemented by sub-classes |
void |
doStop()
Abstract method for service stopping to be implemented by sub-classes |
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 |
void |
processRar(JClassLoader cls,
java.lang.String resFileName,
org.objectweb.jonas_rar.deployment.xml.JonasResource jonasra)
Process the specified rar, extracting all the jars files to be included in the classloader and all the native files needed by the rar. |
void |
unDeployRars(java.net.URL[] urls)
Undeploy the given rars of an ear file. |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
Field Detail |
public static final java.lang.String RESOURCE_LIST
public static final java.lang.String CLASS
public static final java.lang.String AUTOLOADDIR
public static final java.lang.String PARSINGWITHVALIDATION
public final java.lang.String MANAGED_CONNECTION_FACTORY_CLASS
public static final java.lang.String JNDI_NAME
public static final java.lang.String PRINTWRITER
public static final java.lang.String MONITOR_FACTORY
Constructor Detail |
public ResourceServiceImpl()
Method Detail |
public void doInit(javax.naming.Context ctx)
doInit
in class AbsServiceImpl
ctx
- configuration of the servicepublic void doStart() throws ServiceException
AbsServiceImpl
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedpublic void doStop() throws ServiceException
AbsServiceImpl
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic void createResourceAdapter(javax.naming.Context ctx) throws java.lang.Exception
ResourceService
createResourceAdapter
in interface ResourceService
java.lang.Exception
public void processRar(JClassLoader cls, java.lang.String resFileName, org.objectweb.jonas_rar.deployment.xml.JonasResource jonasra) throws ResourceServiceException
cls
- the current classloaderresFileName
- rar file to processjonasra
- the jonas-ra.xml properties
ResourceServiceException
- if an error occurs during
the extracting.public void deployRars(javax.naming.Context ctx) throws ResourceServiceException
deployRars
in interface ResourceService
ctx
- the context containing the configuration
to deploy the rars.ResourceServiceException
- if an error occurs during
the deployment.public void unDeployRars(java.net.URL[] urls)
unDeployRars
in interface ResourceService
urls
- the list of the urls of the rars to undeploy.public static java.lang.Object getConnectionFactory(java.lang.String jndiName)
public java.lang.Integer getCurrentNumberOfResource()
getCurrentNumberOfResource
in interface ResourceServiceImplMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |