1 Reply Latest reply on Apr 2, 2004 1:48 PM by Michael Speer

    How to get Database identifcation information from JNDI

    Michael Speer Newbie

      Is it possible to get the instance name from JNDI

      I know that the *ds.xml file have the instance name in the jdbc connection string my question is can I get that information from within JBOSS?

      Example :


      <local-tx-datasource>
      <jndi-name>jdbc/cpr</jndi-name>
      <connection-url>jdbc:oracle:thin:@192.168.11.92:1613:devInst</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>sam</user-name>
      sam
      <max-pool-size>20</max-pool-size>
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      </local-tx-datasource>




      Goal: inside of JBOSS I want to get: devInst

      Reason: I want to have a webpage display what instance this application is persisting against. My clients have many instances on the same box and need to know which instance they are testing.