From the client, are you trying to connect to a database using a
datasource which is deployed on JBoss server? If yes, then you won't have access to
the java: namespace to which the datasource is bound. See this for more details
http://wiki.jboss.org/wiki/HowCanIAccessADataSourceFromAClient
In the articles that you are reading, we are using just a ClientLoginModule to pass on the
credentials to the server. The server will then do the authentication and authorization
when the bean is being accessed.
View the original post :