0 Replies Latest reply on Aug 9, 2012 4:53 PM by markorocko

    Why cannot I not access a Datasource that seems to be reachable.

    markorocko Newbie

      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?

      Please advise.



      DataSource ds = (DataSource) cxt.lookup( lookupName );