2 Replies Latest reply on Sep 12, 2002 12:42 PM by David Jencks

    Please help, emergency!!!

    hsteven29 Newbie

      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.

      P.S.: (From java: namespace of JndiView, I can see DefaultDS, does that mean that jndi name is "DefaultDS". If it is true, I should have no problem to lookup ctx.lookup("DefaultDS") from out of Jboss or ctx.lookup("java:DefaultDS") from inside Jboss. Please point out if I am wrong)