Uploaded image for project: 'WINDUPRULE - Red Hat Application Migration Toolkit rules'
  1. WINDUPRULE - Red Hat Application Migration Toolkit rules
  2. WINDUPRULE-304

JMS Deployment Descriptors Changes in JBoss EAP 7

    XMLWordPrintable

Details

    • Story
    • Resolution: Duplicate
    • Major
    • 2.5.0.Final
    • None
    • EAP70 -> EAP71
    • None
    • Sprint 37

    Description

      From JBoss EAP 7.1 Migration Guide:

      "5.3.1. Replace or Update JMS Deployment Descriptors
      The proprietary HornetQ JMS resource deployment descriptor files identified by the naming pattern -jms.xml no longer work in JBoss EAP 7. The following is an example of a JMS resource deployment descriptor file in JBoss EAP 6.

      <?xml version="1.0" encoding="UTF-8"?>
      <messaging-deployment xmlns="urn:jboss:messaging-deployment:1.0">
      <hornetq-server>
      <jms-destinations>
      <jms-queue name="testQueue">
      <entry name="queue/test"/>
      <entry name="java:jboss/exported/jms/queue/test"/>
      </jms-queue>
      <jms-topic name="testTopic">
      <entry name="topic/test"/>
      <entry name="java:jboss/exported/jms/topic/test"/>
      </jms-topic>
      </jms-destinations>
      </hornetq-server>
      </messaging-deployment>

      If you used -jms.xml JMS deployment descriptors in your application in the previous release, you can either convert your application to use the standard Java EE 7 deployment descriptor as specified in section EE.5.18 of the Java EE 7 specification or you can update the deployment descriptor to use the messaging-activemq-deployment schema instead.

      If you choose to update the descriptor, you need to make the following modifications.

      Change the namespace from "urn:jboss:messaging-deployment:1.0" to "urn:jboss:messaging-activemq-deployment:1.0".
      Change the <hornetq-server> element name to <server>.
      The modified file should look like the following example.

      <?xml version="1.0" encoding="UTF-8"?>
      <messaging-deployment xmlns="urn:jboss:messaging-activemq-deployment:1.0">
      <server>
      <jms-destinations>
      <jms-queue name="testQueue">
      <entry name="queue/test"/>
      <entry name="java:jboss/exported/jms/queue/test"/>
      </jms-queue>
      <jms-topic name="testTopic">
      <entry name="topic/test"/>
      <entry name="java:jboss/exported/jms/topic/test"/>
      </jms-topic>
      </jms-destinations>
      </server>
      </messaging-deployment>"

      A new RHAMT Rule should be added to address this app migration issue.
      When: deployment includes -jms.xml with namespace urn:jboss:messaging-deployment:1.0
      Perform: alert the user about such descriptor not being supported in JBoss EAP 7, and briefly introduce the two possible solutions (the standard Java EE solution is obviously preferable), redirecting to JBoss EAP Migration Guide for more information

      Attachments

        Issue Links

          Activity

            People

              mnovotny@redhat.com Marek Novotny
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: