1 Reply Latest reply on Sep 6, 2002 7:25 PM by hsteven29

    access datasource from out of jboss VM

    hsteven29

      Hi all:

      I am runing client application out of Jboss VM. So I need nothing to do with jboss.xml, ejb-jar.xml etc. I have two configuration files configured like:

      jboss.jcml:

      <!-- =======================================================-->
      <!-- JDBC-->
      <!-- =======================================================-->


      oracle.jdbc.driver.OracleDriver,org.hsqldb.jdbcDriver



      DefaultDS
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl

      jdbc:oracle:thin:@127.0.0.1:test
      test
      test
      25
      1
      1800000
      true
      1.0


      standardjaws.xml:
      jaws>
      java:/DefaultDS
      <type-mapping>Oracle8</type-mapping>
      false
      Is any other configure file I need to take care? because those two files don't have jndi name for datasource, what is the client lookup statement: ctx.lookup("DefaultDS") or something else. If I need use jndi name like 'jdbc/MyDataSource'(using ctx.lookup("jdbc/MyDataSource"), what I should modify those two files. I am new to Jboss. Your help would be very much appreciated.

      Best wishes.

      Steven.