[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5097) MessageDestinationReferenceMetaData produced by merge of annotation and xml loses information
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Thu Jan 10 20:56:43 EST 2008
[ http://jira.jboss.com/jira/browse/JBAS-5097?page=all ]
Scott M Stark resolved JBAS-5097.
---------------------------------
Resolution: Done
> MessageDestinationReferenceMetaData produced by merge of annotation and xml loses information
> ---------------------------------------------------------------------------------------------
>
> Key: JBAS-5097
> URL: http://jira.jboss.com/jira/browse/JBAS-5097
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployment services
> Environment: metadata project org.jboss.test.metadata.annotation.ejb3.AnnotationEjb3UnitTestCase.testMessageDrivenBeanMerge
> Reporter: Scott M Stark
> Assigned To: Scott M Stark
> Fix For: JBossAS-5.0.0.Beta4
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list