1 Reply Latest reply on Jan 20, 2004 5:44 AM by n2

    Translate weblogic Transaction Isolation Level to Jboss

    lasterra

      I am playing with jboss. I have a EJB in weblogic that uses
      <transaction-isolation>
      <isolation-level>TRANSACTION_SERIALIZABLE</isolation-level>

      <ejb-name>Sequence</ejb-name>
      <method-name>*</method-name>

      </transaction-isolation>

      in the Entity Sequence bean. How can I do this on jboss2.4.4 and jboss3.0.

      Thanks, Enrique

        • 1. Re: Translate weblogic Transaction Isolation Level to Jboss
          n2

          you can set the transaction isolation level in the datasource configuration file name-ds.xml in the deploy directory for jboss 3.x.x.
          this is an example for ms sqlserver:

          <datasources>
          <local-tx-datasource>
          <jndi-name>matrix</jndi-name>
          <connection-url>jdbc:microsoft:sqlserver://<ip>:1433;databaseName=<db-name>;SelectMethod=cursor</connection-url>
          <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
          <user-name>xxx</user-name>
          < password>xxx< /password>
          <transaction-isolation>TRANSACTION_READ_UNCOMMITTED</transaction-isolation>
          </local-tx-datasource>
          </datasources>
          


          possible values are: TRANSACTION_SERIALIZABLE, TRANSACTION_REPEATABLE_READ, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED