Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 274980

Summary: [plug-in registry] Investigate possibility of reuse JMX spec in remote monitoring
Product: [Eclipse Project] PDE Reporter: Jacek Pospychala <jacek.pospychala>
Component: IncubatorsAssignee: Wojciech Galanciak <wojciech.galanciak>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, ws
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 243439    
Attachments:
Description Flags
jmx test
none
jmx plugin
none
patch for org.eclipse.pde.runtime none

Description Jacek Pospychala CLA 2009-05-05 09:20:18 EDT
It would be good to have plug-in registry view support JMX specification in load/present data coming over JMX from external JMX agents (e.g. equinox monitoring incubator).
Comment 1 Jacek Pospychala CLA 2009-05-05 09:21:55 EDT
Assigning to Wojtek, our GSOC student working on pde monitoring efforts.

Wojtek please post here your findings, pros/cons, and sample code that you worked on recently.
Comment 2 Wojciech Galanciak CLA 2009-05-21 14:46:15 EDT
Created attachment 136698 [details]
jmx test
Comment 3 Wojciech Galanciak CLA 2009-05-21 14:55:26 EDT
I added jmx implementation. It is very simple agent which provides inforamtion about all bundles, services and extension points. You can use e.g. jconsole to check how it works. I wrote it to get familiar with jmx.
Comment 4 Jacek Pospychala CLA 2009-05-22 04:37:54 EDT
and the first trouble with JMX is that it requires J2SE 5.0
Comment 5 Wojciech Galanciak CLA 2009-05-28 08:40:47 EDT
Equinox monitoring server provides almost all required information to correct work of plugin registry:
bundles &#8211; all information except exported packages and runtime libraries
extension points &#8211; all required information
services &#8211; there is information about plugins which registered it but has problem with multiple registers (when service is registered by more than one plugin we can get information only about one of them)
It also delivers main operation on plugins:
start
stop
uninstall
There are no operations allow to install plugin from target location.
I think that the best solution is to use server implementation of Equinox Monitoring. I don't see any sense in writing new server side. In the case of client side there is also some code that can be reused (mainly connection establishing and invoking remote operations). In existing client implementation there are some problems with connection (sometimes without any reason I lose connection with the server).
Comment 6 Chris Aniszczyk CLA 2009-05-28 14:25:14 EDT
I may be OK with this, this just ties us to Java 5, correct?
Comment 7 Wojciech Galanciak CLA 2009-05-28 14:29:06 EDT
Yes, it only requires java 1.5.
Comment 8 Wojciech Galanciak CLA 2009-07-15 09:45:54 EDT
Created attachment 141643 [details]
jmx plugin

This is first version of the jmx plugin. It also just like ecf plugin delivers new backend (JmxRegistryBackend) which is also jmx client. Plugin creates jmx server and register JmxRegistryHost MBean. If you want to check how it works you'll need org.eclipse.pde.runtime plugin from incubator with patch from this bug.
Comment 9 Wojciech Galanciak CLA 2009-07-15 09:47:26 EDT
Created attachment 141644 [details]
patch for org.eclipse.pde.runtime

This is patch for org.eclipse.pde.runtime from incubator.
Comment 10 Wojciech Galanciak CLA 2009-07-15 09:57:23 EDT
You can notice the plugin doesn't require java 1.5 because all jmx stuff is in separated plugin.
Comment 11 Eclipse Genie CLA 2018-12-25 19:25:19 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 12 Lars Vogel CLA 2019-09-02 15:03:08 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.
Comment 13 Lars Vogel CLA 2019-09-02 15:03:57 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.