[jboss-user] [Management, JMX/JBoss] - Re: getting a Controller

alesj do-not-reply at jboss.com
Tue Apr 24 09:21:38 EDT 2007


There is a jsr88-service.xml:

  | <server>
  |    <mbean code="org.jboss.deployment.services.DeploymentManagerService"
  |       name="jboss.management.local:type=JSR88DeploymentManager,name=DefaultManager">
  |       <!-- The DeploymentContext attachment types that identify each deployment
  |       type 
  |       -->
  |       <attribute name="EarDeployerType">org.jboss.deployment.J2eeApplicationMetaData</attribute>
  |       <attribute name="EjbDeployerType">org.jboss.metadata.ApplicationMetaData</attribute>
  |       <attribute name="Ejb3DeployerType">org.jboss.ejb3.Ejb3Deployment</attribute>
  |       <attribute name="RarDeployerType">org.jboss.resource.metadata.ConnectorMetaData</attribute>
  |       <attribute name="WarDeployerType">org.jboss.metadata.WebMetaData</attribute>
  |       <attribute name="CarDeployerType">org.jboss.ejb3.metamodel.ApplicationClientDD</attribute>
  |       <!-- The MainDeployer to process deployments -->
  |       <attribute name="MainDeployer"><inject bean="MainDeployer" /></attribute>
  |       <attribute name="UploadDir">${jboss.server.temp.dir}/jsr88</attribute>
  |       <!-- If false, the an existing deployment may exist in the upload dir  -->
  |       <attribute name="FailOnCollision">false</attribute>
  |       <!-- If false, the deployment is retained in the upload dir -->
  |       <attribute name="DeleteOnUndeploy">false</attribute>
  |    </mbean>
  | </server>
  | 

You can just add

  |       <attribute name="kernel"><inject bean="jboss.kernel:service=Kernel"/></attribute> 
  | 

and get an underlying Kernel instance.
>From there you get Controller. ;-)

Or get it directly

  |       <attribute name="controller"><inject bean="jboss.kernel:service=KernelController"/></attribute> 
  | 

Of course, both need new setter in DeploymentManagerService + instance ref. :-)

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

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



More information about the jboss-user mailing list