[jboss-dev-forums] [Design of OSGi Integration] - Management of deployed bundles

thomas.diesler@jboss.com do-not-reply at jboss.com
Thu Mar 5 03:52:01 EST 2009


Folks,

currently there is a management view on the deployed OSGi Framework 


  | public interface ManagedFrameworkMBean
  | {
  |    /** The default object name: jboss.osgi:service=ManagedFramework */
  |    static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.osgi:service=ManagedFramework");
  | 
  |    /**
  |     * Get the list of all installed bundles
  |     */
  |    Set<ObjectName> getBundles();
  |    
  |    /**
  |     * Get the installed bundle 
  |     */
  |    ObjectName getBundle(String symbolicName);
  | }
  | 

Every deployed bundle is also registered as an MBean


  | public interface ManagedBundleMBean
  | {
  |    /**
  |     * Returns this bundle's current state. 
  |     * A bundle can be in only one state at any time. 
  |     * 
  |     * @return An element of UNINSTALLED,INSTALLED, RESOLVED,STARTING, STOPPING,ACTIVE.
  |     */
  |    int getState();
  |    
  |    /**
  |     * Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header
  |     */
  |    String getSymbolicName();
  |    
  |    /**
  |     * Starts this bundle with no options
  |     */
  |    void start() throws BundleException;
  |    
  |    /**
  |     * Stops this bundle with no options.
  |     */
  |    void stop() throws BundleException;
  | }
  | 

As I understand it the ProfileService (PS) is meant to provide a general management view on installed components, which is not limited to JMX.

Where could I read up on the PS or find related documentation and examples that could help me to potentially migrate the above to the PS?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215134#4215134

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215134



More information about the jboss-dev-forums mailing list