1 23 24 package javax.resource.spi; 25 26 import javax.resource.ResourceException ; 27 import javax.resource.NotSupportedException ; 28 import javax.resource.spi.ActivationSpec ; 29 import javax.resource.spi.endpoint.MessageEndpointFactory ; 30 31 import javax.transaction.xa.XAResource ; 32 33 41 public interface ResourceAdapter { 42 43 45 64 void start(BootstrapContext ctx) throws ResourceAdapterInternalException ; 65 66 81 void stop(); 82 83 85 103 void endpointActivation(MessageEndpointFactory endpointFactory, 104 ActivationSpec spec) throws ResourceException ; 105 106 120 void endpointDeactivation(MessageEndpointFactory endpointFactory, 121 ActivationSpec spec); 122 123 149 XAResource [] getXAResources(ActivationSpec [] specs) 150 throws ResourceException ; 151 } 152 | Popular Tags |