-->
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.  [ 1 post ] 
Author Message
 Post subject: Please delete this post --- WAS Datasource Connection
PostPosted: Tue Apr 29, 2008 11:21 am 
Beginner
Beginner

Joined: Wed Aug 09, 2006 12:09 pm
Posts: 20
Location: Belgium
This was meant to be a reply to another post but I hit the wrong button, how can I delete this??

Hello. I am interested in what you are doing here, using a WAS datasource.

I have looked at the code but this connection.provider_class, does this replace anything in my Hibernate configuration?

The reason I ask is that the class WSDataSourceConnectionProvider, the configure method, accepts arguments of username and password that are taken from the Properties props file.

Now where I am confused is looking at this I do not think I would call it directly but just adding eht connection.provider_class to my Hibernate config will call this WSDataSourceConnectionProvider.

So does the Properties props come from my hibernate.cfg.xml (or hibernate.cfg.Configuration call) meaning that I would still need to define the username, password in my configuration?

Or is this overriding the standard call to hibernate.cfg.Configuration class and I could now do this

Code:
Configuration cfg = new Configuration();
cfg.configure("path/to/my/hibernate.cfg.xml");



And that would then be using the WSDataSourceConnectionProvider class?

Sorry if these questions seem a little dumb I am just not 100% sure about how to implement this.

Thanks for reading.

cheers
Martin


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.