`

关于jboss 4 的JNDIVIew 名字空间

    博客分类:
  • Java
 
阅读更多

 

Jboss JNDI

 

http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html-single/index.html#Resource_Environment_References-ENC_resource_env_ref_access_code_fragment

 

There are three commonly used levels of naming scope in JBoss: names under java:comp , names under java: , and any other name. As discussed, the java:comp context and its subcontexts are only available to the application component associated with that particular context. Subcontexts and object bindings directly under java: are only visible within the JBoss server virtual machine and not to remote clients. Any other context or object binding is available to remote clients, provided the context or object supports serialization.

An example of where the restricting a binding to the java: context is useful would be a javax.sql.DataSource connection factory that can only be used inside of the JBoss server where the associated database pool resides. On the other hand, an EJB home interface would be bound to a globally visible name that should accessible by remote client.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics