Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-541

An MDB with a jboss.xml-specified destination misbehaves, trying to create wrong destination

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EJB 3.0 RC7 - FD
    • None
    • None
    • None

      I deploy a simple MDB. The destination that specified by the annotation does not exist:

      @ActivationConfigProperty(propertyName="destination", propertyValue="queue/suchQueueWasNeverCreatedAndItWill NeverBe")

      I overrride the destination name in the jboss-specific deployment descriptor. This destination exists.

      <jboss>
      <enterprise-beans>
      <message-driven>
      <ejb-name>MDB</ejb-name>
      <destination-jndi-name>queue/testQueue</destination-jndi-name>
      </message-driven>
      </enterprise-beans>
      </jboss>

      At deployment, the EJB3 deployer tries to (wrongly) create "queue/MDB" instead of realizing that queue/testQueue exists.

      10:23:35,988 WARN [MDB] destination not found: queue/MDB reason: javax.naming.NameNotFoundException: MDB not bound
      10:23:35,988 WARN [MDB] creating a new temporary destination: queue/MDB

            wdecoste1@redhat.com William Decoste (Inactive)
            ovidiu.feodorov_jira Ovidiu Feodorov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: