|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.server.ra.EasyBeansResourceAdapter
public class EasyBeansResourceAdapter
Defines a resource adapter which allow to embed the EJB3 server in Application Server. application server.
Nested Class Summary | |
---|---|
class |
EasyBeansResourceAdapter.EmbeddedStarter
This inner class will wait until the JOnAS server is ready and start the embedded server. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_XML_FILE
Default XML file. |
private Embedded |
embedded
Embedded instance. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
EasyBeansResourceAdapter()
|
Method Summary | |
---|---|
void |
endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
This is called during the activation of a message endpoint. |
void |
endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
This is called when a message endpoint is deactivated. |
protected Embedded |
getEmbedded()
Gets the embedded object. |
javax.transaction.xa.XAResource[] |
getXAResources(javax.resource.spi.ActivationSpec[] specs)
This method is called by the application server during crash recovery. |
void |
start(javax.resource.spi.BootstrapContext ctx)
Starts the embedded server. |
void |
stop()
Stopp the embedded server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_XML_FILE
private static JLog logger
private Embedded embedded
Constructor Detail |
---|
public EasyBeansResourceAdapter()
Method Detail |
---|
public void start(javax.resource.spi.BootstrapContext ctx) throws javax.resource.spi.ResourceAdapterInternalException
start
in interface javax.resource.spi.ResourceAdapter
ctx
- - a bootstrap context containing references to useful
facilities that could be used by a resource adapter instance.
javax.resource.spi.ResourceAdapterInternalException
- indicates bootstrap failure.public void stop()
stop
in interface javax.resource.spi.ResourceAdapter
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) throws javax.resource.ResourceException
endpointActivation
in interface javax.resource.spi.ResourceAdapter
endpointFactory
- - a message endpoint factory instance.spec
- an activation spec JavaBean instance.
javax.resource.ResourceException
- - indicates message endpoint activation
rejection due to incorrect activation setup information.public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
endpointDeactivation
in interface javax.resource.spi.ResourceAdapter
endpointFactory
- a message endpoint factory instance.spec
- an activation spec JavaBean instance.public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs) throws javax.resource.ResourceException
getXAResources
in interface javax.resource.spi.ResourceAdapter
specs
- an array of ActivationSpec JavaBeans each of which
corresponds to an deployed endpoint application that was active
prior to the system crash.
javax.resource.ResourceException
- generic exception if operation fails due to an
error condition.protected Embedded getEmbedded()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |