| |
|
| java.lang.Object org.ow2.easybeans.server.ra.EasyBeansResourceAdapter
EasyBeansResourceAdapter | public class EasyBeansResourceAdapter implements javax.resource.spi.ResourceAdapter(Code) | | Defines a resource adapter which allow to embed the EJB3 server in Application Server.
application server.
author: Florent Benoit |
Inner Class :public class EmbeddedStarter extends Thread | |
Method Summary | |
public void | endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) This is called during the activation of a message endpoint. | public void | endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) This is called when a message endpoint is deactivated. | protected Embedded | getEmbedded() Gets the embedded object. | public XAResource[] | getXAResources(ActivationSpec[] specs) This method is called by the application server during crash recovery.
Parameters: specs - an array of ActivationSpec JavaBeans each of whichcorresponds to an deployed endpoint application that was activeprior to the system crash. | public void | start(BootstrapContext ctx) Starts the embedded server. | public void | stop() Stopp the embedded server. |
DEFAULT_XML_FILE | final public static String DEFAULT_XML_FILE(Code) | | Default XML file.
|
JONAS_ADM_ITF | final public static String JONAS_ADM_ITF(Code) | | JOnAS ADM interface.
|
endpointActivation | public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException(Code) | | This is called during the activation of a message endpoint.
Parameters: endpointFactory - - a message endpoint factory instance. Parameters: spec - an activation spec JavaBean instance. throws: ResourceException - - indicates message endpoint activationrejection due to incorrect activation setup information. |
endpointDeactivation | public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)(Code) | | This is called when a message endpoint is deactivated. The instances
passed as arguments to this method call should be identical to those
passed in for the corresponding endpointActivation call. This causes the
resource adapter to stop delivering messages to the message endpoint. Any
exception thrown by this method is ignored. After this method call, the
endpoint is deemed inactive.
Parameters: endpointFactory - a message endpoint factory instance. Parameters: spec - an activation spec JavaBean instance. |
getEmbedded | protected Embedded getEmbedded()(Code) | | Gets the embedded object.
embedded server. |
getXAResources | public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException(Code) | | This method is called by the application server during crash recovery.
Parameters: specs - an array of ActivationSpec JavaBeans each of whichcorresponds to an deployed endpoint application that was activeprior to the system crash. an array of XAResource objects each of which represents a uniqueresource manager. throws: ResourceException - generic exception if operation fails due to anerror condition. |
start | public void start(BootstrapContext ctx) throws ResourceAdapterInternalException(Code) | | Starts the embedded server.
Parameters: ctx - - a bootstrap context containing references to usefulfacilities that could be used by a resource adapter instance. throws: ResourceAdapterInternalException - indicates bootstrap failure. |
stop | public void stop()(Code) | | Stopp the embedded server.
|
|
|
|