etm.contrib.integration.jca
Class EtmMonitorConnector

java.lang.Object
  extended by etm.contrib.integration.jca.EtmMonitorConnector
All Implemented Interfaces:
java.io.Serializable, javax.naming.Referenceable, javax.resource.spi.ResourceAdapter

public class EtmMonitorConnector
extends java.lang.Object
implements javax.resource.spi.ResourceAdapter, javax.resource.Referenceable, java.io.Serializable

A JCA connector that may be used to initialize and shutdown a JETM runtime within a Java EE environment. Supports both static or JNDI name exposal.

Since:
1.2.2
Version:
$Revision: 248 $
Author:
void.fm
See Also:
Serialized Form

Constructor Summary
EtmMonitorConnector()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory aMessageEndpointFactory, javax.resource.spi.ActivationSpec aActivationSpec)
           
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory aMessageEndpointFactory, javax.resource.spi.ActivationSpec aActivationSpec)
           
 javax.naming.Reference getReference()
           
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] aActivationSpecs)
           
 void setConfigFile(java.lang.String fileName)
           
 void setJndiName(java.lang.String aJndiName)
           
 void setReference(javax.naming.Reference aReference)
           
 void start(javax.resource.spi.BootstrapContext aBootstrapContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EtmMonitorConnector

public EtmMonitorConnector()
Method Detail

setConfigFile

public void setConfigFile(java.lang.String fileName)

setJndiName

public void setJndiName(java.lang.String aJndiName)

start

public void start(javax.resource.spi.BootstrapContext aBootstrapContext)
           throws javax.resource.spi.ResourceAdapterInternalException
Specified by:
start in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.spi.ResourceAdapterInternalException

stop

public void stop()
Specified by:
stop in interface javax.resource.spi.ResourceAdapter

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory aMessageEndpointFactory,
                               javax.resource.spi.ActivationSpec aActivationSpec)
                        throws javax.resource.ResourceException
Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory aMessageEndpointFactory,
                                 javax.resource.spi.ActivationSpec aActivationSpec)
Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter

getXAResources

public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] aActivationSpecs)
                                                 throws javax.resource.ResourceException
Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Throws:
javax.naming.NamingException

setReference

public void setReference(javax.naming.Reference aReference)


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.