Suppose I create a datasource and a JNDI name to access a database and I set up this in my application server websphere. In order for my
java code to use this data source, do I have to deploy my java code to the application server ? I know if I do that that should work. But what if I just want to
test some standalone java code which is not
j2ee application ? for example I just want to test a select statement and print it on console, how can this code use the data source ? I assume the datasource is created on the application server so how can the standalone code access it ?