-->
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.  [ 3 posts ] 
Author Message
 Post subject: Status of Hibernate Service
PostPosted: Mon Oct 27, 2003 7:35 pm 
Newbie

Joined: Sun Oct 26, 2003 5:21 pm
Posts: 4
Hi,

What is the status of Hibernate Service when using with JBoss, either 3.2.2 or 4.0.0DR2 ?

If I put in my hibernate-service.xml the following line :

...
<attribute name="UserTransactionName">java:/UserTransaction</attribute>
...

I got this error ( from JBoss server.log ) :
...
... net.sf.hibernate.TransactionException: Could not find UserTransaction in JNDI: : UserTransaction not bound
...

If I code like this :
...
<attribute name="UserTransactionName">java:/TransactionManager</attribute>
...

I got this error :
...
... java.lang.ClassCastException ???
...

So, what is the correct configuration ?

Thanks.


Top
 Profile  
 
 Post subject: UserTransaction in JBoss 3.2.2
PostPosted: Tue Nov 04, 2003 12:33 am 
Newbie

Joined: Tue Nov 04, 2003 12:06 am
Posts: 3
I am having the same problem.

In jboss jmx-console the UserTransaction is in the global section not the java:/ section, so I tried changing the line in the jboss-service.xml of the sar example from the hibernate.org site

from:

<attribute name="UserTransactionName">java:/TransactionManager</attribute>

to:

<attribute name="UserTransactionName">TransactionManager</attribute>

and it appears to work.

Take this with a grain of salt because i'm stumbling around in the dark at the moment (i'm transitioning from web-apps to ejb).

good luck


Top
 Profile  
 
 Post subject: Correction....
PostPosted: Tue Nov 04, 2003 12:35 am 
Newbie

Joined: Tue Nov 04, 2003 12:06 am
Posts: 3
Oops

I cut and pasted the wrong line of your example, i meant

from:
<attribute name="UserTransactionName">java:/UserTransaction</attribute>

to:
<attribute name="UserTransactionName">UserTransaction</attribute>


leave the transactionManager alone :)

cheers


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