-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate3 with Jboss
PostPosted: Mon Apr 11, 2005 3:48 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
Hello,

I've integrated hibernate3 (instead of 2) with jboss 4.0.1sp1.

I wanted to upgrade to Hibernate3... but JBoss is for Hibernate2... otherwise the mbean don't start because it's looking for net.sf.* classes... and Hibernate3 is now org.hibernate.*

So what did I do ?
Well I've installed the latest Jboss 4.0.1sp1
I've downloaded Hibernate3 (hibernate3.jar + antlr-2.7.5H3.jar)

put them in the har deployer directory (delete hibernate2.jar)

and now 2 things :

jboss-hibernate.jar is for hibernate2
so with the sources of JBoss, compile the hibernate module and replace all net.sf.hib* with org.hib*
then replace your jboss-hibernate.jar

be careful, if you use ehcache, modify the provider your hibernate-service.xml must look like that : Code:

Code:
<server>

   <mbean code="org.jboss.hibernate.jmx.Hibernate"
           name="jboss.har:service=Hibernate">
       <depends>jboss.jca:service=LocalTxCM,name=CENTRIX_DS</depends>
       <attribute name="DatasourceName">java:/CENTRIX_DS</attribute>
       <attribute name="Dialect">org.hibernate.dialect.SQLServerDialect</attribute>
       <attribute name="CacheProviderClass">org.hibernate.cache.EhCacheProvider</attribute>
       <attribute name="SessionFactoryName">java:/HIBERNATE</attribute>
       <attribute name="ShowSqlEnabled">false</attribute>
   </mbean>

</server>
   




well maybe it would be more simple to download the correct jboss-hibernate.jar for hibernate3 ....

how can I attach it here ? I put it in the jboss wiki go and see there.....[/img]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 11, 2005 3:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
That, or you could just wait for me to commit the integration for Hibernate3 I have sitting on my laptop (waiting for after 4.0.2 to be released).


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