Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo Admin Console Bundle List Retrieval(How Does Virgo retrieve the list of installed bundles?)
Virgo Admin Console Bundle List Retrieval [message #689567] Mon, 27 June 2011 21:16 Go to next message
Priya  is currently offline Priya
Messages: 5
Registered: June 2011
Junior Member
How does the Virgo Admin Console Retrieve the list of installed bundles ?
There is an option of running the vsh bundle list command on the the equinox console what is the other way to retrieve without pinging on the Telnet port.
Re: Virgo Admin Console Bundle List Retrieval [message #689571 is a reply to message #689567] Mon, 27 June 2011 21:39 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

You can use the mBeans provided by Virgo - the Runtime Artifact Model (RAM). If you start bin/jconsole.bat or bin/jconsole.sh the mBeans can be found under:

org.eclipse.virgo.kernel / Model
* bundle
* configuration
* par
* plan

Re: Virgo Admin Console Bundle List Retrieval [message #690009 is a reply to message #689571] Tue, 28 June 2011 18:48 Go to previous messageGo to next message
Priya  is currently offline Priya
Messages: 5
Registered: June 2011
Junior Member
Thanks that was very helpful. But how do I access the Mbean to display only the user deployed bundles ?
Re: Virgo Admin Console Bundle List Retrieval [message #690032 is a reply to message #690009] Tue, 28 June 2011 20:16 Go to previous messageGo to next message
Priya  is currently offline Priya
Messages: 5
Registered: June 2011
Junior Member
Also would like to know how to access the Mbean programatically to retrieve the list
Re: Virgo Admin Console Bundle List Retrieval [message #690192 is a reply to message #690032] Wed, 29 June 2011 06:52 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

You should be able to query the mBeans. If you are running in the same VM the code may look like this:

MBeanServer server = ManagementFactory.getPlatformMBeanServer();
ObjectName searchObjectName = new ObjectName("org.eclipse.virgo.kernel:type=Model,artifact-type=bundle,name=*");

Set<ObjectName> objectNames = server.queryNames(searchObjectName, null);


I haven't tested the code, so you may need to adjust it a bit to work as expected.
Re: Virgo Admin Console Bundle List Retrieval [message #690596 is a reply to message #690192] Wed, 29 June 2011 19:39 Go to previous messageGo to next message
Priya  is currently offline Priya
Messages: 5
Registered: June 2011
Junior Member
I'am trying to run it is a separate client program by using RMI to access the mbean. In that case what is the default URL for accessing the jconsole and the bean name that i'm supposed to provide.
Re: Virgo Admin Console Bundle List Retrieval [message #690818 is a reply to message #690596] Thu, 30 June 2011 09:13 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

The remote access with jconsole is described in the User Guide.

If you are using your own client code I guess you'll need the parameters in bin/jconsole.sh script for setting the ssl java system properties.

Re: Virgo Admin Console Bundle List Retrieval [message #691173 is a reply to message #690818] Thu, 30 June 2011 21:39 Go to previous message
Priya  is currently offline Priya
Messages: 5
Registered: June 2011
Junior Member
Hi Thanks a lot , was able to set up the ssl properties and was able to access the mbeans
Previous Topic:Problem to shutdown Virgo with altered admin password
Next Topic:Web Application Failed to start
Goto Forum:
  


Current Time: Tue Sep 30 10:27:43 GMT 2014

Powered by FUDForum. Page generated in 0.02155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software