The way I wrote InstanceKeyObjectFactory it expected that an instance of
PerUserPoolDataSource would be created and bound to a jndi context. In
such a case, the Reference as returned by getReference() method of
InstanceKeyDataSource would be used and things should work properly.
It appears in the
Any thoughts on how to fix this issue?
or how the current code should work?
I got it to work by adding the following to
InstanceKeyObjectFactory.getObjectInstance
if (obj == null) {
PerUserPoolDataSource ds = new
PerUserPoolDataSource();