3 Replies Latest reply on Feb 25, 2008 5:43 AM by Cristi Cioriia

    Problem deploying MDB

    Cristi Cioriia Newbie

      Hi,

      I have tried to create a MDB to consume some messages posted to a message queue. The MDB looks like that:

      @MessageDriven(activationConfig = {@ActivationConfigProperty(propertyName= "destinationType", propertyValue="javax.jms.Queue")})
      public class AlertEmailSender implements MessageListener {
      
       @Override
       public void onMessage(Message message) {
       Logger log = Logger.getInstance(AlertEmailSender.class);
       //My code here...
       }
      
      }
      

      I have also defined my own queue:

      15:51:25,125 INFO [EmailQueue] Bound to JNDI name: queue/EmailQueue
      15:51:25,140 INFO [A] Bound to JNDI name: queue/A
      15:51:25,140 INFO [B] Bound to JNDI name: queue/B
      15:51:25,140 INFO [C] Bound to JNDI name: queue/C
      15:51:25,156 INFO [D] Bound to JNDI name: queue/D
      15:51:25,156 INFO [ex] Bound to JNDI name: queue/ex
      15:51:25,171 INFO [testTopic] Bound to JNDI name: topic/testTopic
      15:51:25,171 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      15:51:25,203 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      15:51:25,218 INFO [testQueue] Bound to JNDI name: queue/testQueue
      15:51:25,265 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
      15:51:25,281 INFO [DLQ] Bound to JNDI name: queue/DLQ
      15:51:25,390 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI
       name 'java:JmsXA'

      Now, when I try to deploy my application into JBOSS I get the following exception:
      15:51:35,390 WARN [ServiceController] Problem starting service jboss.j2ee:ear=wise-ear.ear,jar=wic-core.jar,name=AlertEmailSender,service=E
      JB3
      org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@b124fa[name=destination descriptions=[Desc
      riptionMetaData@195a626[language=pt]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigPropert
      y(destinationType=javax.jms.Queue)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
       at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:95)

      I have googled for the exception, but didn't find much. The warning concerning this bean deployment is the only one that I get.Can u please point me what I am doing wrong? Thanks.