Hi Bhaskar,
You can directly register a service like this:
protected void registerMBean(Object mbean, String type) {
Hashtable<String, Object> props = new Hashtable<>();
props.put("jmx.objectname", "org.apache.karaf:" + type +
",name=" + System.getProperty("karaf.name"));
trackRegistration(bundleContext.registerService(getInterfaceNames(mbean), mbean,
props));
}
Regards
JB
On 06/30/2015 05:55 PM, [email protected] wrote:
Hi team,
Would you please share some guidance how can i implement jmx mbean in
karaf declaratively(through felix scr annotation instead of blueprint).
Regards
Bhaskar
U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains
information that is, or may be, covered by electronic communications privacy
laws, and is also confidential and proprietary in nature. If you are not the
intended recipient, please be advised that you are legally prohibited from
retaining, using, copying, distributing, or otherwise disclosing this
information in any manner. Instead, please reply to the sender that you have
received this communication in error, and then immediately delete it. Thank you
in advance for your cooperation.
---------------------------------------------------------------------
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com