Reputation: 11
I am not able to lookup JMX jndi (comp/env/jmx/domainRuntime) in weblogic managed servers ( servers in cluster). Getting below execption. In AdminServer I am able to lookup successfully.
javax.naming.NameNotFoundException: While trying to look up comp/env/jmx/domainRuntime
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:412)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
Upvotes: 1
Views: 3379
Reputation: 6227
Only the Admin Server has direct access to weblogic.management.mbeanservers.domainruntime
. You'll want to access that same jndi via something like the remote example here:
http://docs.oracle.com/cd/E11035_01/wls100/jmx/accessWLS.html
More examples and references:
http://www.javacodegeeks.com/2013/06/taming-the-jmx-on-weblogic-server.html
Upvotes: 1