Configuring Sybase SQL Anywhere 11 databse server on Jboss 5.0 Application

Posted on 2010-01-06
Medium Priority
Last Modified: 2013-12-02
I am connecting my web application which is running on JBoss 5.0 server using MySql server currently to a databsse on Sybase SQL Anywhere 11.
I have managed to run the database server and migrated my databse.. now i am stuck at configuring and connecting the database server to my application. I am using hibernate framework to handle all the databse operations.
I have configured the  sybase-ds.xml file in my jboss deploy folder.
downloaded the driver class file and stored it in my jbos/lib folder.
I dont even know whether this supports hibernate or not..
i checked the hibernate documentation... where i got the info that it is supported.

Can someone please help me with the connection and configuration..

Question by:panshul007
  • 3
LVL 11

Accepted Solution

anilallewar earned 2000 total points
ID: 26291679
I don't have sybase with me but I am sure that sybase would be supported by Hibernate. Hibernate states that it supports Sybase 12.5 (JConnect 5.5).

The following are the broad steps that you would need to take to migrate the database; Hibernate is popular because you can move to different databases with minimal/no changes to code.

1. Edit the hibernate-cfg.xml to change the dialect to "org.hibernate.dialect.SybaseAnywhereDialect"
2. Change the id-generators if they are used in your hbm files to "native" so that the database specific sequence generators are picked up automatically by Hiberante.
3. If you are using SP, mySQL specific data functions you would need to convert them to Sybase stuff.

Let me know if you encounter specific issues that you cannot solve.
LVL 11

Expert Comment

ID: 26291701
This is another custom dialects available where the Author claims he supports version 11.

LVL 11

Expert Comment

ID: 26546266
All the relevant information related to the question has been provided which will enable @panshul007 to migrate the application to another database.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question