-->
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.  [ 6 posts ] 
Author Message
 Post subject: hibernate & HSQLDB
PostPosted: Fri Mar 04, 2005 3:22 am 
Beginner
Beginner

Joined: Fri Feb 27, 2004 3:49 am
Posts: 25
can hibernate support hsqldb?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 6:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 05, 2005 12:13 am 
Beginner
Beginner

Joined: Fri Feb 27, 2004 3:49 am
Posts: 25
how hsqldb work with hibernate? has any reference or example?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 05, 2005 12:14 am 
Beginner
Beginner

Joined: Fri Feb 27, 2004 3:49 am
Posts: 25
how hsqldb work with hibernate? has any reference or example?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 05, 2005 12:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have you tried downloading it and read the docs ?

the default database config is for hsqldb.

damn!
-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 07, 2005 2:08 am 
Beginner
Beginner

Joined: Fri Feb 27, 2004 3:49 am
Posts: 25
i got it. thanks.

may i ask another question? my application will be connect to two different database(one is MySQL and another is HSQLDB). i use JBoss as my application server and generate jboss-service.xml to connect MySQL. how my application connect to HSQLDB ?

below is my jboss-service.xml. is it need to add another mbean for hsqldb? when do transaction, how hibernate session switch between that two different database?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>

<!-- Generated file - Do not edit! -->

<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="MapResources"></attribute>
<attribute name="JndiName">java:/HibernateFactory</attribute>
<attribute name="Datasource">java:MySqlDSEPLY</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UserName">user</attribute>
<attribute name="Password">123</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>

</server>

thanks ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.