1 Reply Latest reply on May 28, 2008 4:05 PM by Anil Saldanha

    Handling Non Container References in java:comp/env

    Anil Saldanha Master

      The web.xml can define

      <!-- ### Environment (java:comp/env/) -->
       <env-entry>
       <description>Integer0</description>
       <env-entry-name>Ints/i0</env-entry-name>
       <env-entry-type>java.lang.Integer</env-entry-type>
       <env-entry-value>0</env-entry-value>
       </env-entry>
       <env-entry>
       <description>Integer1</description>
       <env-entry-name>Ints/i1</env-entry-name>
       <env-entry-type>java.lang.Integer</env-entry-type>
       <env-entry-value>1</env-entry-value>
       </env-entry>
       <env-entry>
       <description>Float0</description>
       <env-entry-name>Floats/f0</env-entry-name>
       <env-entry-type>java.lang.Float</env-entry-type>
       <env-entry-value>0.0</env-entry-value>
       </env-entry>
      


      This is a ToDo in the MappedReferenceMetaDataResolverDeployer. This was previously handled in JBoss 4.2 with the bindEnvEntry method
      http://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/server/src/main/org/jboss/metadata/EnvEntryMetaData.java

      I am going to make an attempt at solving this.