Skip to content

MDB redeploy fails #20

@weberjn

Description

@weberjn

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions