0 Replies Latest reply on Sep 13, 2012 8:02 AM by Priya Gopi

    How to register the "jboss.as:socket-binding-group=standard-sockets,socket-binding=http"

    Priya Gopi Newbie



      I am using JBoss 4.2.0 as my AS. I am using Dojo framework for UI. For synchronous notification to the client from server, from client to the server, i need to take the MBean "jboss.as:socket-binding-group=standard-sockets,socket-binding=http" from my JBoss. For this i am using Jetty with JBoss. i am trying to use this code and does not server my purpose, end up in throwing the exception "InstanceNotFound" and says this object is not registered.


      ObjectName http =

                      new ObjectName("jboss.as:socket-binding-group=standard-sockets,socket-binding=http");


      jbossWebHost = (String) mBeanServer.getAttribute(http, "bound-address");



      Moreover, we do use a xml in which we are adding MBean tags and mentioning the fully qualified class name and the MBean object name. In order to make the "jboss.as:socket-binding-group=standard-sockets,socket-binding=http" to register, to which class name i should use. Please also tell me, can i register this in the ServletListenerContext itself. if it is possible, can you please share me the snippet of code for this?