读书人

关于jboss 四 的JNDIVIew 名字空间

发布时间: 2014-06-11 16:16:53 作者: rapoo

关于jboss 4 的JNDIVIew 名字空间

?

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 inJBoss: names under java:comp, names under java:, andany other name. As discussed, the java:comp context and itssubcontexts are only available to the application component associated withthat particular context. Subcontexts and object bindings directly under java:are only visible within the JBoss server virtual machine and not to remoteclients. Any other context or object binding is available to remote clients, providedthe 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 connectionfactory that can only be used inside of the JBoss server where the associateddatabase pool resides. On the other hand, an EJB home interface would be boundto a globally visible name that should accessible by remote client.

读书人网 >操作系统

热点推荐