"alesj" wrote :
| "adrian(a)jboss.org" wrote :
| | That's why it is called "Described" and its where "On Demand" originally left things until "PreInstall" was introduced.
| Really?
|
| Hmmm, I though our PreInstall didn't change things.
| Or why we now leave them in Not_Installed?
We'll maybe I'm dreaming and didn't actually implement it properly (yet ;-)
The same issue is also required for this feature:
https://jira.jboss.org/jira/browse/JBMICROCONT-78
where an "on demand" pojo is registered in JMX before the instance exists
with a simple mbean that just has a "start" operation until you click/invoke it
to create the real pojo.
You aren't going to know whether to register it in JMX unless you've looked
at the annotations (both instance and class) which happens in the describe stage.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230470#4230470
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230470
"adrian(a)jboss.org" wrote : 3) Using ObjectName.quote() is probably not the same thing. It would lead to a mangled
| and probably unreadable ObjectName.
|
Thanks, i wasn't aware of that. I did notice Ales mentioning similar thing about this, but did not get a chance to try it out. Letting it remain the way it is won't be a big deal, once we take care of not registering the optional MBeans, by default.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230466#4230466
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230466
"alesj" wrote : "alesj" wrote :
| | What to do? :-)
| | (a) have OnDemand stay in Pre_Install
| | (b) add extra Not_Installed AOP lifecycle hook
| |
| As seen, none of these two will work.
| Only moving On_Demand to Describe will work,
| but that defeats the purpose of On_Demand.
|
Why does it defeat the purpose of "On Demand"?
The idea of On Demand is to not create the bean, we can still look at its metadata
and see what we would do if we were to construct it and activate it.
That's why it is called "Described" and its where "On Demand" originally left things
until "PreInstall" was introduced.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230455#4230455
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230455
3) Using ObjectName.quote() is probably not the same thing. It would lead to a mangled
and probably unreadable ObjectName.
4) The correct way to not register (sub-)deployment/components in JMX is
to remove the @JMX annotation from the DeployersImpl bean in conf/bootstrap/deployers.xml
If the DeployersImpl is not registered in JMX then neither will be the deployments.
This has nothing directly to do with the bean.
It is letting you look (using JMX) at what deployers the deployment/component went
through, the attachments (deployment descriptors) associated with the
deployment/component and maybe how long the processing took for each deployer
if you enable the stats.
It's just debug information so it is optional.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230450#4230450
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230450