What application is it. If you use ejb3 it might be easier to use injection with @Resource to get a DS reference
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community