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