0 Replies Latest reply on Nov 13, 2003 7:03 PM by danielchai

    How to configure the Sybase Datasource?

    danielchai

      Hi all,

      I am new in Jboss and EJB and I have met a problem of the configuration of Sybase Datasource.

      I wrote a BMP programm and copied its jar file to the deploy directory. Then I copied the driver class files(jconn2.jar and jTDS2.jar) to the deploy/lib. After doing that, I copied the sybase-ds.xml from the docs/examples to the deploy directory and made the following changes:


      <local-tx-datasource>
      <jndi-name>TEST</jndi-name>
      <connection-url>jdbc:sybase:Tds:10.21.131.102:4100/TEST?JCONNECT_VERSION=6</connection-url>
      <driver-class>com.sybase.jdbc2.jdbc.SybDataSource</driver-class>
      <user-name>sa</user-name>
      sybase
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter</exception-sorter-class-name>
      </local-tx-datasource>


      No error occurs during the deployment.But when I run the client, it says that it can not access the metadata in the database.

      The version of JBoss I use is Jboss3.2.2RC4.

      Is there anything wrong?Pleae help me.

      Thanks first!