Skip to content

JmsChannelFactoryBean instanciating it's own jmsTemplate prevents mocking for test [INT-2679] #6656

Open
@spring-operator

Description

@spring-operator

Sylvain Mougenot opened INT-2679 and commented

Using jms:outbound-channel-adapter it's not possible to mock jmsTemplate (for test purposes) because JmsChannelFactoryBean instanciate it's own.

private final JmsTemplate jmsTemplate = new DynamicJmsTemplate();

It would be nice if we could inject the jmsTemplate.


Affects: 2.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions