This content has been marked as final.
Show 4 replies
-
1. Re: getting a Controller
alesj Apr 13, 2007 8:14 AM (in response to jfclere)What about if you try this kernel name:
/** The default kernel name */ static final String KERNEL_NAME = "jboss.kernel:service=Kernel";
But I think this is what your problem falls in:
- http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105189&start=10
Maybe the only difference is that you want to access 'core' kernel, and not new one created from "Bean Deployer".
Where's this code that you want this?
Where do you get mainDeployer? -
2. Re: getting a Controller
jfclere Apr 13, 2007 2:52 PM (in response to jfclere)I want to add that code in deployment/src/main/org/jboss/deployment/services/DeploymentManagerService.java
mainDeployer comes from there (org.jboss.deployers.spi.deployment.MainDeployer) -
3. Re: getting a Controller
jfclere Apr 13, 2007 2:58 PM (in response to jfclere)I want to add that code in deployment/src/main/org/jboss/deployment/services/DeploymentManagerService.java
mainDeployer comes from there (org.jboss.deployers.spi.deployment.MainDeployer) -
4. Re: getting a Controller
alesj Apr 24, 2007 9:21 AM (in response to jfclere)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. :-)