-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Caused by: javax.resource.NotSupportedException: A socket activation spec already exists with the same port:
This is because on endpointDeactivation the SocketListener is not removed from
ConcurrentMap<ActivationSpec, SocketListener> socketListeners
Fix for SocketResourceAdapter.java:
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec activationSpec) {
logger.info("endpointDeactivation");
SocketListener socketListener = socketListeners.get(activationSpec);
socketListener.release();
socketListeners.remove(activationSpec);
}
Metadata
Metadata
Assignees
Labels
No labels