This is fine. But sometime, you want to see whether this is bound to which jndi name in "java:" namespace. For that you have to run JndiView MBean (which u can see in the jmx-console.

Also, you did not mentioned, from where you are running the client? are you running it from outside the Jboss?? or from within the jboss?? I have tested from within jboss like, jsp, session bean, etc. and it works fine.