I managed to retrieve Synapse MBean information using RMI. Thanks
On Thu, Nov 26, 2009 at 10:56 AM, Afkham Azeez <[email protected]> wrote: > Did you try to run your code within a non-OSGi env as we discussed > yesterday? > > Azeez > > On Thu, Nov 26, 2009 at 10:47 AM, Heshan Suriyaarachchi > <[email protected]>wrote: > >> Hi, >> My requirement is to programmetically access synapse JMX MBeans from a >> bundle. The problem is that I can not access any MBeans that are registered >> by synapse within my bundle but I am able to access Platform MBeans. >> Following is the code which I used to query for MBeans. When I use the >> following code within Synapse, I am able to access MBeans exposed by >> synapse. But when I use the same code within my bundle, I am only able to >> retreive Platform MBeans. >> >> ObjectName objName = new ObjectName("java.lang:type=ClassLoading"); >> Set set1 = mbs.queryNames(objName, null); >> >> objName = new >> ObjectName("org.apache.synapse:Type=Transport,ConnectorName=nio-http-listener"); >> Set set2 = mbs.queryNames(objName, null); >> >> objName = new ObjectName("org.apache.synapse:Type=*,ConnectorName=*"); >> Set set3 = mbs.queryNames(objName, null); >> >> Another point to note is that Jconsole is showing Synapse MBeans and >> Platform MBeans as well. >> >> Am I missing something here? WDYT? >> >> -- >> Regards, >> Heshan Suriyaarachchi >> WSO2, Inc.: http://www.wso2.com/ >> >> Blog: http://heshans.blogspot.com/ >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > -- > Afkham Azeez > [email protected] > WSO2 Inc. http://wso2.com > Blog: http://afkham.org > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Heshan Suriyaarachchi WSO2, Inc.: http://www.wso2.com/ Blog: http://heshans.blogspot.com/
_______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
