-->
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: How can I create UserTransaction ..
PostPosted: Thu Apr 29, 2004 4:23 am 
Newbie

Joined: Mon Dec 22, 2003 4:23 am
Posts: 11
Hello.
I made my hibernate.cfg.xml as following


------------------
<property name="transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
----------------------
On testing my program, I always meet error message like this..
-----------------------
17:18:18,605 ERROR JTATransaction:135 - Could not find UserTransaction in JNDI
javax.naming.NamingException: Cannot create resource instance
------------------------

What I should do to complete my work ?

My development env.
w2k 2000
tomcat4.0.30
hibernate2.1.3


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 4:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can't use JTA in a non transaction-managed environment. So either use a proper container (Jboss, Weblogic), use a transaction manager (JOTM), use some other kind of transaction management (Spring) or do manual transaction management.


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.