ちょっと確認したいものがありまして。
参考は、こちら。
JNDI view in JBoss AS 7
http://www.mastertheboss.com/jboss-as-7/jndi-view-in-jboss-as-7
まあ、管理コンソールは使わないので、CLIで。
管理CLIを起動。
$ $JBOSS_HOME/bin/jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
接続。
[disconnected /] connect [standalone@localhost:9999 /]
「/subsystem=naming:jndi-view」を実行。
[standalone@localhost:9999 /] /subsystem=naming:jndi-view { "outcome" => "success", "result" => { "java: contexts" => { "java:" => {"TransactionManager" => { "class-name" => "com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate", "value" => "com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate@1a7c48ad" }}, "java:jboss" => { "TransactionManager" => { "class-name" => "com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate", "value" => "com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate@1a7c48ad" }, "TransactionSynchronizationRegistry" => { "class-name" => "com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple", "value" => "com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple@48bfc90" }, "UserTransaction" => { "class-name" => "org.jboss.tm.usertx.client.ServerVMClientUserTransaction", "value" => "org.jboss.tm.usertx.client.ServerVMClientUserTransaction@156fd602" }, "jaas" => { "class-name" => "com.sun.proxy.$Proxy13", "children" => { "jboss-ejb-policy" => { "class-name" => "org.jboss.as.security.plugins.SecurityDomainContext", "value" => "org.jboss.security.authentication.JBossCachedAuthenticationManager@1731d9aa" }, "other" => { "class-name" => "org.jboss.as.security.plugins.SecurityDomainContext", "value" => "org.jboss.security.authentication.JBossCachedAuthenticationManager@49c933cb" }, "jboss-web-policy" => { "class-name" => "org.jboss.as.security.plugins.SecurityDomainContext", "value" => "org.jboss.security.authentication.JBossCachedAuthenticationManager@38677a45" } } }, "mail" => { "class-name" => "javax.naming.Context", "children" => {"Default" => { "class-name" => "javax.mail.Session", "value" => "javax.mail.Session@456aec90" }} }, "datasources" => { "class-name" => "javax.naming.Context", "children" => { "ExampleDS" => { "class-name" => "org.jboss.jca.adapters.jdbc.WrapperDataSource", "value" => "org.jboss.jca.adapters.jdbc.WrapperDataSource@6ed1058a" }, "mysqlXaDs" => { "class-name" => "org.jboss.jca.adapters.jdbc.WrapperDataSource", "value" => "org.jboss.jca.adapters.jdbc.WrapperDataSource@5cc2dfdc" } } }, "infinispan" => { "class-name" => "javax.naming.Context", "children" => {"container" => { "class-name" => "javax.naming.Context", "children" => {"hibernate" => { "class-name" => "org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager", "value" => "hibernate" }} }} } }, "java:global" => undefined }, "applications" => undefined } }
例えば、データソースのところなら「java:jboss/datasources/mysqlXaDs」、Hibernate 2nd Level CacheのInfinispanのところなら「java:jboss/infinispan/container/hibernate」ですね。
こんな感じで。