Currently we are trying to explore HA-JDBC to use in our application. Would
like to seek advice.
Here is the situation, application is standalone java application,working with
more than one database (oracle).
So need to control transaction management with datasource.
Would like to know whether it is possible to use HA-JDBC alone to connect
databases by datasource without using any application server.
Thanks,
Yong May
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sure. Most database drivers provide DataSource implementations. HA-JDBC can be
configured either to look up a DataSource in JNDI, or create the vendor-
specific DataSources directly. Your application will, however, need to create
the HA-JDBC DataSource in your bootstrap code. Let me know if you have
additional questions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Currently we are trying to explore HA-JDBC to use in our application. Would
like to seek advice.
Here is the situation, application is standalone java application,working with
more than one database (oracle).
So need to control transaction management with datasource.
Would like to know whether it is possible to use HA-JDBC alone to connect
databases by datasource without using any application server.
Thanks,
Yong May
Sure. Most database drivers provide DataSource implementations. HA-JDBC can be
configured either to look up a DataSource in JNDI, or create the vendor-
specific DataSources directly. Your application will, however, need to create
the HA-JDBC DataSource in your bootstrap code. Let me know if you have
additional questions.