-->
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: Hibernate - Websphere
PostPosted: Thu Aug 05, 2004 4:32 pm 
Newbie

Joined: Sat Jul 24, 2004 10:10 am
Posts: 15
Hiberanate 2.1.4 , Websphere 5.1 , MSSQL 2000

I have a stateless EJB with a method doProcessing(). The doProcessing()
method gets a Hibernate session using ThreadLocal pattern and gets some data from the database using the session.Load() method.
Using this data , it calls a DAO method which has straight JDBC call for
complex sql. The DAO method uses the getDataSource().getConnection()
to get the db connection.

When the doProcessing method is invoked, I get the following error

WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.


Please advise.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 6:50 pm 
Newbie

Joined: Sat Jul 24, 2004 10:10 am
Posts: 15
Finally figured out the problem :

The following article explains the problem

http://www-1.ibm.com/support/docview.ws ... -8&lang=en


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.