Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14190

JMSComponent tries to use applicationContext before it is initialised

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0.RC3
    • 3.0.0
    • camel-jms
    • None
    • Unknown

    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

          Activity

            People

              davsclaus Claus Ibsen
              ccronemberger Constantino Cronemberger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: