-->
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, DB2, WebSphere 5.x and transactions
PostPosted: Mon Jan 17, 2005 12:23 am 
Newbie

Joined: Sun Jan 16, 2005 11:56 pm
Posts: 2
Hi,

I have been studying this link for a day or so and I think there's a pretty good chance that I'm having the problem addressed within. I have searched high and low, but I'm not able to find a solution to the problem I'm having with the solution :). The article describes creating a custom connection provider instance which I have done and jar'ed (The code in the example). I have added logging to the subclass to make it obvious when it is being used. I have added the required prop to the hibernate configuration and run without the jar in the classpath: I get an exception that the new ConnectionProvider subclass can't be found which is what I expect. So I add the jar to the server classpath, expecting that hibernate is going to use it to retrieve connections within a transaction, but none of the logging that I have added to the class shows up in my log file. So, it appears that hibernate sees the connection.provider_class property and tries to create an instance of my class, but doesn't actually use it. I'm sure I'm missing something obvious, but I can't figure it out and I have read everything I can find. Help?

We are using WAS 5.1 and DB2. I'm not sure about the Hibernate version, it's just a jar and no one knows what version we are using. I can't find anything in the jar (manifest, etc) that indicates the version, but it's probably 5 months old.

I apologize for my simplistic explanation, I'm not a J2EE guy. I've been handed a problem that I can't fix. Thanks for any advice, let me know if there's anything else I can provide.

James


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 18, 2005 2:35 am 
Newbie

Joined: Sun Jan 16, 2005 11:56 pm
Posts: 2
Maybe someone could just tell me where I can find more documentation that might cover this type of thing? I have been over the FAQs and docs, but didn't see any mention of custom ConnectionProviders. Has anyone ever defined a new ConnectionProvider and gotten it to work?


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.