I'm converting and updating some code that works on an earlier JBoss version and am having trouble connecting to the datasource.
I see the datasource in the admin console, tested it and it looks good.
However, for some reason I cannot access it from my java code below which returns a null DataSource.
I feel like it might have something todo with the security domain but don't know or how to resolve.
Security domain is <security-domain>java:/jaas/MyRealm</security-domain> using form based authentication.
Is there something I need to do to make to make this JNDI source accessible?
DataSource ds = (DataSource) cxt.lookup( lookupName );
Retrieving data ...