List of usage examples for javax.resource NotSupportedException NotSupportedException
public NotSupportedException(String message, String errorCode)
From source file:com.grapevineim.xmpp.ra.ResourceAdapterImpl.java
public void endpointActivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec spec) throws NotSupportedException { LOG.info("[RA.endpointActivation()] Entered"); try {// w w w.j a va 2 s. c om XmppMessageListener l = new XmppMessageListenerImpl(workManager, messageEndpointFactory, (ActivationSpecImpl) spec); synchronized (messageListeners) { messageListeners.put(messageEndpointFactory, l); } } catch (Exception ex) { LOG.error("[RA.endpointActivation()] An Exception was caught while activating the endpoint"); LOG.error("[RA.endpointActivation()] Please check the server logs for details"); throw new NotSupportedException("Activation failed", ex); } }