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.