I am writing a simple stateless session bean. I am wondering if there is a way in which this bean's home reference be registered in a global namespace like a Naming Service or tnameserver (which may be running in a remote machine). I know this can be done by a utility which can lookup the local namespace and copy its reference into a global namespace. However, I am wondering if there is any way I can specify in the deployment descriptor (maybe jboss.xml), so that the refernce is put into a global namespace rather than the local namespace. The purpose of this activity is to enable clients to look up a bean's reference from a global namespace through a JNDI Api and invoke business method on that bean.
This will abstract the client from the existence of a bean.