Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4575

JNDI ObjectFactory should acccept parameters

XMLWordPrintable

      object-factory binding should allow us to specify parameters that should be propagated to the ObjectFactory.
      For example, Tomcat allows us to create URLResourceFactory that accepts parameters defined as attributes of Resource element in XML.

      The configuration would loook like this:
      {{
      <subsystem xmlns="urn:jboss:domain:naming:1.1">
      <bindings>
      <object-factory name="java:global/url/google" module="net.croz.jboss.jndi.url" class="net.croz.jboss.jndi.url.URLResourceFactory" url="http://www.google.com"/>
      </bindings>
      </subsystem>
      }}

      I have implemented proof of a concept.

              emartins@redhat.com Eduardo Martins
              iloncar.ml Ivica Loncar (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified