0 Replies Latest reply on Jan 23, 2002 11:38 AM by james

    Oracle connection and two-phase commit

    james Newbie

      Hi,

      I have a CMP bean and when it is accessed it gives the following error, JAVA_XA.XA_START must be declared.

      I know from other threads that I can get rid of this by loading the XA stuff into my Oracle installation but I don't want to do this. My bean is readonly and I only ever access one database and therefore do not want the overhead of two phase commits.

      Is there anyway of making my jaws cmp beans just access the database through a normal connection. Or can anyone explain why there is no extra overhead associated with a two-phase commit.

      My jboss.jcml is the standard one provided with the installation apart from I've added the following :


      300

      oracle.jdbc.xa.OracleXid


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


      OracleDB
      oracle.jdbc.xa.client.OracleXADataSource</attr
      ibute>
      jdbc:oracle:thin:@192.168.0.230:1521:topcat
      hamburg
      hamburg
      2
      0
      300000
      true
      60000
      900000
      true
      true
      false
      true
      false
      1.0