-
While I use ha-jdbc to sync postgresql, the index in my table is the default type(b-tree) but not hashed. I saw when ha-jdbc to get table's unique constraint, it will ignore indexes that are not hased. Is the behavior work in all other database?.
2009-12-25 08:10:31 UTC by slash0818
-
Hello
May be you use :
*DriverManager.getConnection(url,User,Pass);*
instead of
*DriverManager.getDriver(url).connect(url,info);*.
2009-12-02 18:27:47 UTC by g_meier
-
Hello,
May be you use :
DriverManager.getConnection(url,User,Pass);
instead of.
2009-12-02 18:26:56 UTC by g_meier
-
Hi all,
I can not start by HA-JDBC by ha-jdbc-2.0.16-rc-1-jdk1.5.jar .
My Code:
Class.forName("net.sf.hajdbc.sql.Driver");
Properties prop=new Properties();
prop.setProperty("config", "ha-jdbc-test.xml");
Driver driver = DriverManager.getDriver("jdbc:ha-jdbc:test");
_conn= driver.connect("jdbc:ha-jdbc:test",prop);
and got exception:
2009-11-12 15:07:41...
2009-11-12 07:15:39 UTC by brain_wang
-
Technically, yes - by changing Callable.call() to Runnable.run() and converting the return value to a member variable with the appropriate accessor method - but why would you want to do that?.
2009-11-11 02:28:57 UTC by ferraro
-
Is there anyother way to implement AbstractDatabaseCluster.getAliveMap using Threads instead of Callable?.
2009-11-04 21:32:00 UTC by sayhi2world
-
It is working fine with creating plain Datasource object. Thanks for your suggestion.
2009-11-04 18:45:01 UTC by sayhi2world
-
It looks like you configured the ha-jdbc datasource in websphere as a jdbc resource - and WS is trying to back it with a pool. You probably want to register the net.sf.hajdbc.sql.DataSource as a plain jndi object, since WS is already managing the backing pools.
2009-10-30 14:48:03 UTC by ferraro
-
Thanks for the reply. I have changed my JDBC provider to <b> net.sf.hajdbc.sql.DataSource </b> and obtained <b>javax.sql.DataSource</b> object in the code. The exception i am getting is,
[10/29/09 11:27:09:553] 5535ea9b FreePool E J2CA0046E: Method createManagedConnctionWithMCWrapper caught an exception during creation of the ManagedConnection for resource...
2009-10-29 18:37:38 UTC by sayhi2world
-
This is not a bug, but rather a mis-configuration. style configurations are only valid for clusters originating from a net.sf.hajdbc.sql.DataSource (implements javax.sql.DataSource), net.sf.hajdbc.sql.DataSourceReference (implements javax.naming.Reference), or net.sf.hajdbc.sql.DataSourceFactory (implements javax.naming.spi.ObjectFactory).
The stack trace indicates that the...
2009-10-29 13:21:00 UTC by ferraro