[jboss-dev-forums] [Design of POJO Server] - Re: New KernelBus lookup failure
alesj
do-not-reply at jboss.com
Wed Oct 3 19:38:15 EDT 2007
"alesj" wrote :
| simple 'name=DefaultDS,service=ManagedConnectionPool' service
This part is wrong. And I know why. :-)
I copied the name from jmx-console web site, which has domain name on top.
So that's why jboss.jca is missing.
And I also know why the difference in sizes.
And why I'm not able to find my service.
Going to bed early and thinking about this things always helps. :-)
The difference is in MBeans being registered through ServiceController, which doesn't add installed MBean to KernelRegister - since ServiceControllerContext doesn't implement KernelRegistryEntry.
Since all this code is org.jboss.kernel aware:
| ServiceController.java[(46, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;, (47, 8) |import| |org|.|jboss|.|kernel|.|plugins|.|bootstrap|.|basic|.|BasicBootstrap|;, (48, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;]
| (46, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;
| (47, 8) |import| |org|.|jboss|.|kernel|.|plugins|.|bootstrap|.|basic|.|BasicBootstrap|;
| (48, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;
|
| rg.jboss.system.metadata[ServiceInjectionValueMetaData.java[(32, 8) |import| |org|.|jboss|.|kernel|.|spi|.|config|.|KernelConfigurator|;, (33, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;],
|
| ServiceValueContext.java[(27, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;, (28, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;]]
|
| ServiceInjectionValueMetaData.java[(32, 8) |import| |org|.|jboss|.|kernel|.|spi|.|config|.|KernelConfigurator|;, (33, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;]
| (32, 8) |import| |org|.|jboss|.|kernel|.|spi|.|config|.|KernelConfigurator|;
| (33, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;
|
| ServiceValueContext.java[(27, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;, (28, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;]
| (27, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;
| (28, 8) |import| |org|.|jboss|.|kernel|.|spi|.|dependency|.|KernelController|;
| org.jboss.system.server.jmx[JMXKernel.java[(46, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;]]
|
| JMXKernel.java[(46, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;]
| (46, 8) |import| |org|.|jboss|.|kernel|.|Kernel|;
|
it's probably the easiest way to add that ServiceControllerContext implements KernelRegistryEntry, and when the MBean is installed (in InstallAction) it is added to the KernelRegistry.
If so, what about the MBeans that are only running these actions: ServiceControllerContextActions.getLifecycleOnly() ?
I guess since InstallAction is currently an empty impl, adding InstallAction to LifecycleOnly won't be a problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091297#4091297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091297
More information about the jboss-dev-forums
mailing list