-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Hibernate with CJDBC
PostPosted: Tue Oct 28, 2003 3:26 pm 
Contributor
Contributor

Joined: Tue Oct 28, 2003 3:22 pm
Posts: 5
Location: Bethesda, MD
Has anyone tried to use Hibernate with C-JDBC? (http://c-jdbc.objectweb.org/) As hibernate doesn't use (or encourage) stored procedures, it seems like it could be very effectively.

Specifically what I'm looking to do is use C-JDBC to a local hsql database, and use C-JDBC to merge that with a production database. Then all that static data like user types and other things can exist in a virtual database and be accessed invisibly using Hibernate.

Just curious if anybody has used these two or if any of this sounds like there will be unforeseen problems.

_________________
Serge Knystautas
e. serge@hibernate.org
p. 301-656-5501


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 3:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I've been wanting to check out C-JDBC for quite a while, but something else always comes up :)

So you want to do something like store all the "reference" data in a local hypersonic database and the rest of the data housed in a seperate production DB and then use C-JDBC to mediate access between the two DBs?

Should be OK. The only issue I could forsee is an inability to defiine proper constraints.

I actually want to look at C-JDBC for its load-balancing support across multiple database servers. Oracle itself has something similiar and we may end up going with that, however. That has the potential to be such a huge performance booster.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 3:58 pm 
Contributor
Contributor

Joined: Tue Oct 28, 2003 3:22 pm
Posts: 5
Location: Bethesda, MD
We too have been following C-JDBC progress for the clustering support. One idea had been to keep our primary DB server MSSQL, but then add some extra MySQL database servers that can share the read-load.

But this idea is to be able to keep all the static tables in CVS with the Java code, but still access it as part of the existing database (enforcing primary keys and accessed via Hibernate).

C-JDBC allows you to create layers, so roughly our architecture looks like this:

Layer 1 is RAIDb 0 (tables across databases), splitting static tables into HSQL and regular tables into Layer 2.

Layer 2 is RAIDb 1 (mirrored across databases), having 1 MSSQL and n MySQL databases mirroring the same tables.

C-JDBC supposedly let's you treat the underlying databases agnostically, but I'm not sure how that will work. Hibernate does that to a large extent, but it has well defined code (dialects) to map features to underlying databases. Not sure how those layers will work. Might need to create a C-JDBC dialect?

Just not sure. If you do get around to testing that, let me know and vice versa.

_________________
Serge Knystautas
e. serge@hibernate.org
p. 301-656-5501


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 19, 2005 10:27 am 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
I think it is important to note that distributed join is not supported by c-jdbc. So, queries on distributed table would not work.


6.7. Current Limitations
The C-JDBC controller in its 1.1 release has the following limitations:
• transparent controller failover is not supported when using horizontal scalability with JGroups,
• network partition/reconciliation is not supported,
• distributed joins are not supported which means that you must ensure that every query
least a single backend,
• RAIDb-1ec and RAIDb-2ec levels are not supported,
• the FileRecoveryLog is not yet implemented, use the JDBCRecoveryLog instead.

(c-jdbc 1.1 user guide, p. 27)

etienne


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 10:39 am 
Beginner
Beginner

Joined: Thu Mar 03, 2005 9:19 pm
Posts: 22
did you guys ever get the time to experient hibernate with C-JDBC? Anybody else?

I am seriously considering using c-jdbc with hibernate and would like to know you guys opinion on that...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.