2 Replies Latest reply: May 25, 2011 12:09 PM by Glen Miller RSS

    Jboss 6 and MDB

    Glen Miller Newbie

      I am having some trouble getting a MDB deployed -- after searching the internet I think this is right but still isnt working.

       

      -- deployed in /server/all/deploy/stock_market_service-hornetq-jms.xml

       

      <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

          <queue name="stock_market_service_market_entity_tick_queue">

              <entry name="/queue/stock_market_service_market_entity_tick_queue"/>

          </queue>

      </configuration>

       

       

       

      -- deployed in ear

       

      @MessageDriven(name="TickMB", mappedName="queue/stock_market_service_market_entity_tick_queue", activationConfig =

      {

          @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),

          @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

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

      })

      public class TickMB implements MessageListener

      {

          @Override

          public void onMessage(Message inMessage)

          {

              logger.info("Hello There");

          }

       

          private static final Logger logger = Logger.getLogger(TickMB.class.getName());

      }

       

       

      -- exception

       

      09:38:06,783 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: com.skyviewsoftware.stockmarket.dataupdater.TickMB ejbName: TickMB

      09:38:06,783 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=StockMarketService.ear,jar=StockMarketService-ejb.jar,name=TickMB,service=EJB3 state=Create: org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@7c24d892[name=destination descriptions=[DescriptionMetaData@243f01d4[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge), ActivationConfigProperty( destination=queue/stock_market_service_market_entity_tick_queue)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

          at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:95) [:6.0.0.Final]

          at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDeployment.java:313) [:6.0.0.Final]

       

       

      I know this is probably something simple i am missing, but I just cant figure out what.

       

      Thanks,

      Glen