org.ow2.jonas.ejb.easybeans
Class JOnASResourceAdapterFinder
java.lang.Object
org.ow2.jonas.ejb.easybeans.JOnASResourceAdapterFinder
- All Implemented Interfaces:
- org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder
public class JOnASResourceAdapterFinder
- extends Object
- implements org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder
Allow to find the Resource Adapter object for a given JNDI name
- Author:
- Florent BENOIT
|
Method Summary |
ResourceAdapter |
getResourceAdapter(String jndiName)
Gets the resource adapter object for the given jndi name (activation
spec) and the given embedded object. |
void |
setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
Sets the given resource resource service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOnASResourceAdapterFinder
public JOnASResourceAdapterFinder()
setResourceService
public void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
- Sets the given resource resource service.
- Parameters:
resourceService - the given service to set.
getResourceAdapter
public ResourceAdapter getResourceAdapter(String jndiName)
throws ResourceException
- Gets the resource adapter object for the given jndi name (activation
spec) and the given embedded object.
- Specified by:
getResourceAdapter in interface org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder
- Parameters:
jndiName - the name of the activation spec bound in the registry
- Returns:
- an instance of the resource adapter that provides the MDB
activation spec.
- Throws:
ResourceException - if an error occurs while trying to get the
resource adapter.
Copyright © 2007 OW2 Consortium. All Rights Reserved.