Details

    • Similar Issues:
      Show 10 results 

      Description

      Expansion of variables was supported in ejb-jar.xml in previous versions of JBoss. This does not appear to be supported in 7.1. Reference this discussion in the AS forum: https://community.jboss.org/message/717509

        Issue Links

          Activity

          Hide
          Stuart Douglas
          added a comment -

          org.jboss.as.test.smoke.property.EjbDDWithPropertyTestCase

          Show
          Stuart Douglas
          added a comment - org.jboss.as.test.smoke.property.EjbDDWithPropertyTestCase
          Hide
          Doug Grove
          added a comment -

          I just tried this expansion in: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1)

          In my ejb-jar.xml file, I have:

          <message-driven>
          <ejb-name>WebSphereXML</ejb-name>
          <ejb-class>com.redhat.gss.service.ejb30.mdb.WebSphereXML</ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <activation-config>
          <activation-config-property>
          <activation-config-property-name>hostName</activation-config-property-name>
          <activation-config-property-value>$

          {wmq.host}</activation-config-property-value>
          </activation-config-property>
          <activation-config-property>
          <activation-config-property-name>port</activation-config-property-name>
          <activation-config-property-value>${wmq.port}</activation-config-property-value>
          </activation-config-property>

          In my server.log file:


          Caused by: javax.resource.spi.ResourceAdapterInternalException: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '${wmq.host}

          :redhat.queue.manager'
          at com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:297)
          at com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333)
          at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:164)
          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:176)
          ... 6 more

          So '$

          {wmq.host}

          ' was not expanded.

          Show
          Doug Grove
          added a comment - I just tried this expansion in: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) In my ejb-jar.xml file, I have: <message-driven> <ejb-name>WebSphereXML</ejb-name> <ejb-class>com.redhat.gss.service.ejb30.mdb.WebSphereXML</ejb-class> <messaging-type>javax.jms.MessageListener</messaging-type> <activation-config> <activation-config-property> <activation-config-property-name>hostName</activation-config-property-name> <activation-config-property-value>$ {wmq.host}</activation-config-property-value> </activation-config-property> <activation-config-property> <activation-config-property-name>port</activation-config-property-name> <activation-config-property-value>${wmq.port}</activation-config-property-value> </activation-config-property> In my server.log file: Caused by: javax.resource.spi.ResourceAdapterInternalException: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '${wmq.host} :redhat.queue.manager' at com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:297) at com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333) at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:164) at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:176) ... 6 more So '$ {wmq.host} ' was not expanded.
          Show
          Doug Grove
          added a comment - This feature needs to be enabled - turned off by default: https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/EnablingDisabling_Descriptor_Based_Property_Replacement.html
          Hide
          Ninguno Ninguno
          added a comment -

          Expansion wasn't working for jboss-service.xml for a SAR deployment (Jboss AS 7.1.1). Would this be supported with this fix?

          Show
          Ninguno Ninguno
          added a comment - Expansion wasn't working for jboss-service.xml for a SAR deployment (Jboss AS 7.1.1). Would this be supported with this fix?
          Hide
          Carlo de Wolf
          added a comment -

          Please ask such questions on the JBoss AS 7 forum.

          Do not use a resolved, potential unrelated issue for such discussions.

          Questions regarding EAP 6 are best directed to the Customer Support Portal.

          Show
          Carlo de Wolf
          added a comment - Please ask such questions on the JBoss AS 7 forum . Do not use a resolved, potential unrelated issue for such discussions. Questions regarding EAP 6 are best directed to the Customer Support Portal.

            People

            • Assignee:
              John Bailey
              Reporter:
              Ed Keen
            • Votes:
              8 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: