Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5097

MessageDestinationReferenceMetaData produced by merge of annotation and xml loses information

XMLWordPrintable

      ejb-jar.xml:
      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
      <enterprise-beans>
      <message-driven>
      <ejb-name>DestBean</ejb-name>
      <message-destination-type>javax.jms.Queue</message-destination-type>
      <message-destination-link>two_ejb.jar#MsgBeanInQueue</message-destination-link>
      <message-destination-ref>
      <description>test destination</description>
      <message-destination-ref-name>replyQueue</message-destination-ref-name> <message-destination-type>javax.jms.Queue</message-destination-type>
      <message-destination-usage>Produces</message-destination-usage>
      <message-destination-link>two_ejb.jar#MsgBeanOutQueue</message-destination-link>
      </message-destination-ref>

      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      with an annotated mdb like:
      @MessageDriven(name="DestBean")
      public class DestBean
      extends DestBeanBase
      implements MessageListener
      {
      @Resource(name="mdc")
      private MessageDrivenContext mdc;

      public DestBean()

      { super(); }

      public EJBContext getEJBContext()

      { return this.mdc; }

      }

      abstract public class DestBeanBase
      {
      public static final String test1 = "test1";

      abstract public javax.ejb.EJBContext getEJBContext();

      @Resource(name="qFactory")
      private QueueConnectionFactory qFactory;

      @Resource(name="replyQueue")
      private Queue replyQueue;

      public void onMessage(javax.jms.Message msg)

      {...}

      }

      Is producing a MessageDestinationReferenceMetaData that is missing much of the ejb-jar.xml information:

      MessageDestinationReferenceMetaData{
      descriptions DescriptionsImpl (id=7741)
      id null
      ignoreDependency null
      injectionTargets Collections$SingletonSet<E> (id=7708)
      link null
      mappedName null
      name "replyQueue"
      resolvedJndiName null
      type "javax.jms.Queue"
      usage null
      }

      The merge of the annotation metadata with the descriptor metadata is losing information.

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: