2 Replies Latest reply on Jul 22, 2014 2:13 PM by Vladimir Marinov

    Problem with MDB: DuplicateServiceException Queue is already registered

    Vladimir Marinov Newbie


      I am playing with WildFly 8.1 and I have created jms-queue:

                          <jms-queue name="SMSQueue">
                              <entry name="queue/SMSQueue"/>
                              <entry name="java:jboss/exported/jms/queues/SMSQueue"/>

      but when I try to deploy Message driven bean:

           name = "SMSQueueMDB",
           activationConfig = {
                @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "/queue/SMSQueue"),
                @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

      I get following exception:

      org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.msc.service.DuplicateServiceException: Service jboss.messaging.default.jms.queue.SMSQueue is already registered


      Message was edited by: Vladimir Marinov