How to clear / delete message from clustered JMS queue environment
I am having problems executing the program in the link below.
How to clear / remove message from JMS weblogic queue
Mine is a clustered environment and uses DomainRuntimeServiceMBean
in the service.
Getting the below exception.
javax.management.InstanceNotFoundException:
com.bea:Name=DomainRuntimeService,
Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean
However, the only node is working fine, but there are no JMS servers that it identified as mine in a clustered environment.
Do I need to specify a specific server name in the cluster?
source to share
DomainRuntimeServiceMBean
is only available on the administrative instance of the WebLogic domain (see http://docs.oracle.com/cd/E13222_01/wls/docs90/wlsmbeanref/mbeans/DomainRuntimeServiceMBean.html?skipReload=true ).
You need to connect to the administrative domain instance and not one of the cluster instances to avoid the error javax.management.InstanceNotFoundException
.
So, check which instance you are connecting to.
source to share