aspose file tools
The moose likes JBoss and the fly likes HibernateService with multiple datasources Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "HibernateService with multiple datasources" Watch "HibernateService with multiple datasources" New topic
Author

HibernateService with multiple datasources

Syed Muhammad Ali Naqvi
Greenhorn

Joined: Feb 07, 2008
Posts: 2
Hello to All. I am using multiple datasources in my jboss-service.xml file. When I do the lookup for specific datasource (e.g java:/pcountsDS) it looks it up but overwrite it with the later one. So when my HQL is executed I get the results from second(last) datasource. It always loads the last datasource connection on the file for instance in my case it always loads java:/pcountsDS no matter what datasource I looked for.

Thanks
Syed Muhammad Ali Naqvi


Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8147
    
  52



Setting that attribute twice is just going to the value that was last set, since it's just one single property after all. What exactly are you trying to do?


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HibernateService with multiple datasources
 
Similar Threads
MySQL and XA Datasource
Problem in putting a dataSource for the Oracle 9i database on JBoss for entity beans
Enable Hibernate statistics MBean on Websphere
Configure Hibernate in JBOSS 4.0
Jboss and Oracle