Thomas Diesler [
http://community.jboss.org/people/thomas.diesler%40jboss.com] created the
discussion
"Management view on the ServiceContainer"
To view the discussion, visit:
http://community.jboss.org/message/567610#567610
--------------------------------------------------------------
Folks,
I wrapped the new ServiceContainer.dumpServices() functionality in an MBean.
You can now point jconsole to 'jboss:ServiceContainer' to get access to this
management inferface
public interface ManagedServiceContainer {
List<String> listServices();
List<String> listServicesByMode(String mode);
List<String> listServicesByState(String state);
void setMode(String serviceName, String mode);
}
Besides providing general state information on registered services, this also allows to
set the mode on a given service controller. Hence, it can be used to bring up ON_DEMAND
services for example.
With the OSGi integration we were looking for a solution that allows us to bring up the
OSGi subsystem triggered by an external provisioning system ( e.g. our hudson testsuite).
One obvious approach would have been to copy a dummy bundle into the 'deployments'
folder, which would trigger an OSGi deployment. Another second approach would have been to
register a dummy
http://www.osgi.org/javadoc/r4v42/org/osgi/jmx/framework/FrameworkMBean.html
FrameworkMBean that would allow bundle installation. That MBean would than have to be
replaced by its propper implementation that we currently get from
http://incubator.apache.org/aries/ Apache Aries.
I figured however that this would be a general problem of bringinup/shutting down
arbitrary services.
https://jira.jboss.org/browse/JBAS-8542 https://jira.jboss.org/browse/JBAS-8542
cheers
-thomas
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/567610#567610]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]