This is what I have in my configuration file, it works well in Glassfish and WebSphere:
<dataSource type="JNDI">
<property name ="data_source" value="jdbc/cpswebmon"/>
</dataSource>
"jdbc / cpswebmon" is the name of the JNDI resource on my application server
source
share