Skip to content

MQ-JMSRA pooled connection validation broken: ManagedConnectionFactory does not implement ValidatingManagedConnectionFactory #422

Open
@svendiedrichsen

Description

@svendiedrichsen

The class com.sun.messaging.jms.ra.ManagedConnectionFactory does not implement the interface javax.resource.spi.ValidatingManagedConnectionFactory. This prevents Application-Servers like i.e. Glassfish/Payara 4/5 to validate pooled JMS connections and has a variety of negative effects in case of broken connections.

// code excerpt from com.sun.enterprise.resource.allocator.AbstractConnectorAllocator
... 
public Set getInvalidConnections(Set connectionSet)
            throws ResourceException {
        if (mcf instanceof ValidatingManagedConnectionFactory) {
            return ((ValidatingManagedConnectionFactory) this.mcf).
                    getInvalidConnections(connectionSet);
        }
        return null;
    }
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions