I am trying to get a database connection from a Java client application, which is outside the WAS container. i.e. a standalone java class. A working DataSource is already configured in WAS 6, with connection pool [Security is NOT enabled].
A deployed servlet with the following code works fine:
However if the java client outside the container, trys to get a connection from the same Connection pool, there is a error. (The difference is in getting the InitialContext only)