/** 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); } }
@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); }
@Override public boolean isDeliveryTransacted(Method arg0) throws NoSuchMethodException { return _metadata.isDeliveryTransacted(); }
@Override protected void doStop() { _metadata.getResourceAdapter().endpointDeactivation(this, _metadata.getActivationSpec()); _metadata.getMessageEndpoint().uninitialize(); }