|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.mdb.MDBResourceAdapterHelper
public final class MDBResourceAdapterHelper
This class allow to get the ResourceAdapter object for a given destination (activation-spec object).
Field Summary | |
---|---|
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
MDBResourceAdapterHelper()
Utility class, no public constructor. |
Method Summary | |
---|---|
static javax.resource.spi.ResourceAdapter |
getJOnASResourceAdapter(java.lang.String jndiName)
Gets the ResourceAdapter by using JOnAS code (used when embedded into JOnAS application server). |
static javax.resource.spi.ResourceAdapter |
getResourceAdapter(java.lang.String jndiName,
Embedded embedded)
Gets the resource adapter object for the given jndi name (activation spec) and the given embedded object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
Constructor Detail |
---|
private MDBResourceAdapterHelper()
Method Detail |
---|
public static javax.resource.spi.ResourceAdapter getResourceAdapter(java.lang.String jndiName, Embedded embedded) throws javax.resource.ResourceException
jndiName
- the nameof the activation spec bound in the registryembedded
- the embedded server
javax.resource.ResourceException
- if an error occurs while trying to get the
resource adapter.public static javax.resource.spi.ResourceAdapter getJOnASResourceAdapter(java.lang.String jndiName) throws javax.resource.ResourceException
jndiName
- the name bound in the registry for activation spec
object.
javax.resource.ResourceException
- if there is a failure when retrieving the
resource adapter object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |