Jboss Mbeans visible in jmx-console but not in JConsole - jvm

JBoss(4.0.x) has many useful MBeans (org.apache.commons.modeler.*) that are visible in:
/jmx-console
But i cannot see these beans listed in JConsole (MBeans tab).
Are these beans not exposed to outside world?

JBoss 4.x has its own internal MBean server, separate from the default JVM one (JBoss AS 4.x pre-dates Java 5 and its MBean server, so needed its own).
I believe that in JBoss AS 5.x you can tell it to use the JVM's MBean server, but I don't think JBoss AS 4.x provides that option.
Are these beans not exposed to outside world?
Yes they are - JBoss AS's internal MBean server is just as exposed as the JVM's one, it's just exposed differently. JConsole talks to the JVM's MBean server, you need different tools to talk to the JBoss AS one.
P.S. JBoss AS 4.0 is eye-poppingly old (2004? 2005?). You really should update it.

Related

What all things can you do with JMX in Mule 4?

JMX can be used to manage any Java Application in running state. Is there any restrictions of using JMX with Mule 4.x.x runtimes ?
It is the same as any Java application. Mule 4 by itself doesn't provide any specific JMX functionality.

Scheduling in jboss7 (and in wildfly) without using EJB

I want to use scheduling in jboss7 (and in wildfly) but I don't want to use any EJB. I know the EJB #Schedule can be used but I have a web application and the same WAR should be used in Tomcat too so EJB is out of the question.
What can I use for scheduling?
Thanks,
V.

Deploy Java EE application without starting

I am using Apache Geronimo. I need a way to deploy an EAR application on an application server without starting the EAR module automatically.
When I deploy my EAR, it is automatically started. I need a way to specify, that it should only be deployed but not started.
Is there a way to do this?
In the past I've opened and closed gates to certain EJBs with the use of JMX.
The cool part:
100% Control your beans from outside using JConsole or your own JMX client.
The drawback:
Every bean instance has to be registered in the MBean Server which is not that cool as you are usually having multiple instances of the same bean.
The solution to this topic was having a #Singleton EJB working as a MBean/controller for all the instances of one EJB.

JBOSS EAP 6 JMX MBeans via rmi

I am kind of new to JMX , Here I am trying to use jconsole provided by jdk to remotely read the MBeans of JBOSS EAP 6. I followed tutorial ,http://magnus-k-karlsson.blogspot.in/2013/01/how-to-remote-connect-jconsole-to-jboss.html with this I am able to read remotely with the jconsole provided by eap 6 (EAP6_HOME)/bin/jconsole.sh ,but I was not able to do the same with jconsole of jdk ? Please give your thought on this. I suspect it may be due to the remoting-jmx protocol of the (service:jmx:remoting-jmx://192.168.0.3:9999 ) jmx remote url. Does jboss-eap6 support rmi(service:jmx:rmi:///jndi/rmi://ipadress/mbeanname) protocol to read MBeans in jconsole?
Thanks,
Leo.
By default, there will be a MBeans tab in the window of jconsole when connected as :
service:jmx:remoting-jmx://jbossHost:9999
To be able to use remoting-jmx protocol you need to have jboss-client.jar or jboss-cli-client.jar on the JConsole classpath.
Here is the relevant part from jconsole.sh provided by JBoss:
CLASSPATH=$JAVA_HOME/lib/jconsole.jar
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
CLASSPATH="$CLASSPATH:$JBOSS_HOME/bin/client/jboss-cli-client.jar"
$JAVA_HOME/bin/jconsole -J-Djava.class.path="$CLASSPATH" "$#"
P.S. You might need to create some user account first. See $JBOSS_HOME/bin/add-user.sh

Start/stop a deployment in Weblogic 9 using JMX (or WLST)

I want to start/stop a deployment in weblogic 9 server.
I prefer to use JMX to talk to a weblogic MBean. I already use this to start/stop a server, but I cannot find the MBean for starting/stopping deployments/applications.
In weblogic server 11g there is a AppDeploymentRuntimeMBean which can stop/start deployments. That is described here:
http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e13951/mbeans/AppDeploymentRuntimeMBean.html
But I cannot find a simular MBean in weblogic 9
http://download.oracle.com/docs/cd/E13222_01/wls/docs92/wlsmbeanref/core/index.html
Is there a way to start/stop a weblogic 9 deployment using jmx or wlst?
BTW, when I record a WLST-script during start/stop of a deployment the pyton-script is empty.
Well actually AppDeploymentRuntimeMBean was first introduced in WLS 10.3 version. And this bean along with DeploymentManagerMBean were created to replace DeployerRuntimeMBean (it is considered deprecated since 9.0.0.0 version). As for me it seems that there is no way to start\stop applications with JMX on WLS 9 unless you decide to use deprecated API. And also consider the fact that you need Administration Server running in order to access Domain Runtime MBean Server that will provide an entry point to DeployerRuntimeMBean.