Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-879

Injecting external context or its destinations in MDB fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR11
    • 7.0.0.DR9
    • JMS
    • None
    • Hide

      1)Run standalone ActiveMQ Artemis broker with InQueue and OutQueue
      2)Send message to InQueue
      3)Create external-context in EAP and pooled CF pointing to external broker
      4)Deploy MDB which reads messages from InQueue on external broker and forwards them to OutQueue. Using external-context.

      Result: You can't make JNDI lookup due to null external-context

      Show
      1)Run standalone ActiveMQ Artemis broker with InQueue and OutQueue 2)Send message to InQueue 3)Create external-context in EAP and pooled CF pointing to external broker 4)Deploy MDB which reads messages from InQueue on external broker and forwards them to OutQueue. Using external-context. Result: You can't make JNDI lookup due to null external-context

      When external-context is defined in EAP and it's pointing to external Artemis broker, it can't be injected in to MDB via @Resource(lookup = "java:global/externalcontext"). Such injection results in null object.
      Injecting destinations from external context results in javax.ejb.EJBTransactionRolledbackException.

            jmesnil1@redhat.com Jeff Mesnil
            okalman@redhat.com Ondřej Kalman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: