Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3524

Resolve system property references in jboss-webservices.xml

    XMLWordPrintable

Details

    Description

      It would be useful for jboss-webservices.xml to have the ability to resolve system property references.

      Here's a particular use case: You have an EJB name defined in jboss-ejb3.xml like so:

      <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="urn:clustering:1.0" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd" version="3.1" impl-version="2.0">
        <enterprise-beans>
          <session>
            <ejb-name>Hello-${app.env}</ejb-name>
            <ejb-class>com.jboss.examples.ejb3.HelloBean</ejb-class>
            <session-type>Stateless</session-type>
          </session>
        </enterprise-beans>
      </jboss:ejb-jar>
      

      And now you want to reference it in jboss-webservices.xml:

      <webservices xmlns="http://www.jboss.com/xml/ns/javaee">
        <port-component>
          <ejb-name>Hello-${app.env}</ejb-name>
          <port-component-uri>test</port-component-uri>
        </port-component>
      </webservices>
      

      This currently does not work.

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            rh-ee-klape Kyle Lape
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: