Description
The method getConfiguration checks if applicationContext is null. If not it will try to automatically initialise the ConnectionFactory and the DestinationResolver.
The problem is that applicationContext will always be null when used with JmsComponentAutoConfiguration (or the corresponding classes in other similar starters) because the method setApplicationContext is called only after the method that creates the bean returns and because the auto configuration class also calls CamelPropertiesHelper.setCamelProperties which in turn calls getConfiguration.
Attachments
Issue Links
- causes
-
CAMEL-14213 camel-jms - Using XA and having 2 or more connection factories issue
- Resolved
- relates to
-
CAMEL-14202 camel-activemq - Setting brokerURL should be used when using spring boot
- Resolved