| JMX and Spring bean [message #654796] |
Thu, 17 February 2011 03:20  |
Dan Tran Messages: 24 Registered: February 2011 |
Junior Member |
|
|
For the classic Spring bean app, i can just annotate my spring bean classes and methods to add JMX functionanality ( so that I can invoke from jconsole ). However, when deploy my spring bean as a bundle to Virgo I dont see my JMX bean shows up in Jconsole.
Would it possible to do that with Virgo?
Big thanks aheahd
-Dan
|
|
|
|
| Re: JMX and Spring bean [message #655018 is a reply to message #654805] |
Thu, 17 February 2011 20:11   |
Dan Tran Messages: 24 Registered: February 2011 |
Junior Member |
|
|
I found org.eclipse.virgo.apps.repository has and implementation of MBean. However, the source manually register the bean.
I was hoping i could find some thing like
@ManagedResource(objectName = "com.mycomp.mc:name=helloWorld", description = "Hello World Via Spring DM.")
public class ExampleService
implements Service {
/**
* Reads next record from input
*/
@ManagedOperation(description = "Hello World!")
public String getMessage() {
return "Hello world!";
}
}
Btw, I also export ExampleService as bundle service bean and it does not help either
Big thanks ahead for advices
-D
[Updated on: Thu, 17 February 2011 20:35] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01714 seconds