コード例 #1
0
 /** Activate JCA message inflow endpoint. */
 @Override
 protected void doStart() {
   _metadata.getMessageEndpoint().initialize();
   try {
     _metadata.getResourceAdapter().endpointActivation(this, _metadata.getActivationSpec());
   } catch (ResourceException e) {
     throw new SwitchYardException(e);
   }
 }
コード例 #2
0
 @Override
 public MessageEndpoint createEndpoint(XAResource xaResource, long timeout)
     throws UnavailableException {
   EndpointProxy handler = new EndpointProxy(_metadata, this, xaResource);
   return (MessageEndpoint)
       Proxy.newProxyInstance(
           Thread.currentThread().getContextClassLoader(),
           new Class<?>[] {_metadata.getListenerInterface(), MessageEndpoint.class},
           handler);
 }
コード例 #3
0
 @Override
 public boolean isDeliveryTransacted(Method arg0) throws NoSuchMethodException {
   return _metadata.isDeliveryTransacted();
 }
コード例 #4
0
 @Override
 protected void doStop() {
   _metadata.getResourceAdapter().endpointDeactivation(this, _metadata.getActivationSpec());
   _metadata.getMessageEndpoint().uninitialize();
 }