org.otfeed.j2ee.ra
Class OtfeedResourceAdapter

java.lang.Object
  extended by org.otfeed.j2ee.ra.OtfeedResourceAdapter
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter

public class OtfeedResourceAdapter
extends java.lang.Object
implements javax.resource.spi.ResourceAdapter


Constructor Summary
OtfeedResourceAdapter()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec activationSpec)
           
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory factory, javax.resource.spi.ActivationSpec activationSpec)
           
 java.lang.Long getDefaultHeartbeatInterval()
           
 java.lang.String getDefaultHostsString()
           
 java.lang.String getDefaultPassword()
           
 java.lang.String getDefaultUsername()
           
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] spec)
           
 void setDefaultHeartbeatInterval(java.lang.Long val)
           
 void setDefaultHostsString(java.lang.String address)
           
 void setDefaultPassword(java.lang.String password)
           
 void setDefaultUsername(java.lang.String username)
           
 void start(javax.resource.spi.BootstrapContext ctx)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtfeedResourceAdapter

public OtfeedResourceAdapter()
Method Detail

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                               javax.resource.spi.ActivationSpec activationSpec)
                        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 factory,
                                 javax.resource.spi.ActivationSpec activationSpec)
Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter

getXAResources

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

start

public void start(javax.resource.spi.BootstrapContext ctx)
           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

getDefaultUsername

public java.lang.String getDefaultUsername()

setDefaultUsername

public void setDefaultUsername(java.lang.String username)

getDefaultPassword

public java.lang.String getDefaultPassword()

setDefaultPassword

public void setDefaultPassword(java.lang.String password)

getDefaultHostsString

public java.lang.String getDefaultHostsString()

setDefaultHostsString

public void setDefaultHostsString(java.lang.String address)

getDefaultHeartbeatInterval

public java.lang.Long getDefaultHeartbeatInterval()

setDefaultHeartbeatInterval

public void setDefaultHeartbeatInterval(java.lang.Long val)


Copyright © 2007-2008 Mike Kroutikov. All Rights Reserved.