Package org.jboss.metadata.ejb.jboss

Examples of org.jboss.metadata.ejb.jboss.JBossConsumerBeanMetaData


/*      */   protected ConsumerContainer getConsumerContainer(int ejbIndex)
/*      */     throws Exception
/*      */   {
/*  549 */     String ejbName = (String)this.ejbNames.get(ejbIndex);
/*      */
/*  551 */     JBossConsumerBeanMetaData consumer = (JBossConsumerBeanMetaData)this.ejbs.get(ejbIndex);
/*      */
/*  553 */     ConsumerContainer container = super.getConsumerContainer(ejbIndex);
/*  554 */     ConsumerImpl annotation = new ConsumerImpl((Consumer)container.resolveAnnotation(Consumer.class));
/*      */
/*  557 */     container.setAssemblyDescriptor(this.dd.getAssemblyDescriptor());
/*      */
/*  559 */     if ((consumer != null) && (!isAnnotatedBean()))
/*      */     {
/*  561 */       if (consumer.getMessageDestination() != null)
/*      */       {
/*  563 */         ActivationConfigPropertyImpl property = new ActivationConfigPropertyImpl("destination", consumer.getMessageDestination());
/*      */
/*  565 */         annotation.addActivationConfig(property);
/*      */       }
/*      */
/*  568 */       if (consumer.getMessageDestinationType() != null)
/*      */       {
/*  570 */         ActivationConfigPropertyImpl property = new ActivationConfigPropertyImpl("destinationType", consumer.getMessageDestinationType());
/*      */
/*  572 */         annotation.addActivationConfig(property);
/*      */       }
/*      */
/*  575 */       addClassAnnotation(container, Consumer.class, annotation);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.jboss.JBossConsumerBeanMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.