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: Help wanted: How can I configure JOTM within Hibernate?
PostPosted: Mon Sep 01, 2003 1:53 am 
Newbie

Joined: Fri Aug 29, 2003 3:49 am
Posts: 3
Hi All!

I want to use JOTM with Hibernate but I didn't success to configure it! Could anybody help me or send me a configuration settings. I successfully use JOTM with Tomcat an in JOTM I found configuration steps for Tomcat.

Please help me if anybody can!

Thank's!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2003 4:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Can you maybe post your xml config as it looks now? What are the issues you are facing?

I have not used JOTM before, so I cannot say for certain the steps required. Hibernate does include a JOTMTransactionManagerLookup class that can be configured to be used with the "transaction.manager_lookup_class" config property. Have you tried that?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2003 2:34 am 
Newbie

Joined: Fri Aug 29, 2003 3:49 am
Posts: 3
My question are:

What must I set in hibernate.cfg.xml (hibernate.properties) file to allow JOTM?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2003 3:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
hibernate.transaction.factory_class net.sf.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager_lookup_class net.sf.hibernate.transaction.JOTMTransactionManagerLookup


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2003 1:40 am 
Newbie

Joined: Fri Aug 29, 2003 3:49 am
Posts: 3
Thanks a lot!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 19, 2003 3:19 am 
Newbie

Joined: Fri Sep 19, 2003 2:36 am
Posts: 1
Hi haattila,

have you been successfull in using Hibernate and JOTM?

I'm trying the same but until now without success.

It seems to be that no datasource instance can be created by the factory
org.objectweb.jndi.DataSourceFactory in the JNDI context.

The same JNDI configuration works with the JOTM dbtest example as
expected. (server.xml and web.xml configuration are exactly the same!)

So it must have something to do with the way Hibernate trys to request
the datasource...?!

Any ideas?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.