Skip to content

Make it possible to inject desired subclass of ActiveMQConnectionFactory into the configuration #46365

@thoroughsoft

Description

@thoroughsoft

Is your feature request related to a problem? Please describe.
For our projects we have wrapper classes for several of the relevant JMS classes to provide additional functionality besides the standard stuff in artemis.
We therefore want to have our own ActiveMQConnectionFactory to generate our ActiveMQConnection subclass.

Describe the solution you'd like
We copied the existing ActiveMQConnectionFactoryConfiguration and ActiveMQConnectionFactoryFactory and with very small changes were able to get the desired outcome.
The existing configuration code is pretty much already ready for this improvement, all that is needed is a way to provide the desired class.
Core to the solution is a very simple interface that can be implemented as a bean to state the desired class.
PR will be provided.

Additional context
The artemis configuration is very similar to the one for Azure ServiceBus and since we use both this functionality is requested there too.
In case you come up with a different (read better) solution this should be coordinated with the ServiceBus team.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions