[Design the new POJO MicroContainer] - Re: DESCRIBE phase - Dependency builders for MC Beans
by alesj
"jaikiran" wrote : But in the long term, shouldn't we be moving away from this default?
|
No, that's why it's called *transparent* AOP integration. ;-)
You can only argue that the AOP mechanism is not performant enough,
but that's as far as I agree with you.
Although this comes with a cost, it does bring lots of nice features.
They are mostly true in a sense of AOP; aspects, concerns separation, ...
@JMX, @JNDI, @Password, @(add-your-own-metadata-here) are good examples of this.
And if I was a user, that's what I would want too, out-of-the-box.
But yeah, there should be a way to explicitly avoid this,
and this is/can be achieved with this new DB per MD mechanism.
And if there is a real demand for this "outside" programmatic usage,
it's trivial to add new declarative way of using this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230359#4230359
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230359
16 years, 11 months
[Design of Messaging on JBoss (Messaging/JBoss)] - JBM 2 default configuration, what should it be
by ataylor
I think the default jms configuration should contain 1 default Connection Factory named ConnectionFactory and 2 queues DLQ and ExpiryQueue.
As far as security goes I think we should have one default user 'guest' who has a 'guest' role. There should be one catch all security setting (#) that applies only the send, consume, createTempQueue and deleteTempQueue to ther guest role only. admin, deleteDurableQueue and createDurableQueue will need to be added by the user. There should be no security match for admin either
There should be one catch all queue settings that basically applies the defaults.
Also I'll remove the jbm-queues from the standalone config so its the same as the AS config and I will rename all the beans files to jbm-jboss-beans.xml, this means the user should just be able to copy over the examples config if this is what they want.
I'll remove any commented out config from all the config files, its messy and we have this covered in the examples now.
regarding the jbm-configuration.xml file, should we leave all the defaults in or trim them down similar to what we do in the examples config?
wdyt?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230340#4230340
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230340
16 years, 11 months
[Design the new POJO MicroContainer] - Re: DESCRIBE phase - Dependency builders for MC Beans
by jaikiran
In the meantime,
"alesj" wrote : "jaikiran" wrote :
| | 1) Can the AOPDependencyBuilder be removed as the default
| |
| No, as this would break all the @JMX definitions.
| Plus probably a ton of other stuff. ;-)
|
I agree, there's going to be some stuff which going to be break (till we fix it :) ). But in the long term, shouldn't we be moving away from this default? Here's why i think the AOPDependencyBuilder default might not be a good idea:
1) For non-programmatic MC bean deployments (i.e. just drop the -beans.xml file), there's no way to override this default dependency builder
2) Even for programmatic MC bean deployments, not everyone will be aware of this issue (or the internal implementation of MC), so most of the times, they are going to end up without any overridden (better performing) dependency builder in the metadata
3) If this dependency builder is for beans that use @JMX or something similar, then i guess there might be some place where this AOPDependencyBuilder can be attached/injected internally by MC to ensure that only such deployments are handled by this builder?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230327#4230327
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230327
16 years, 11 months