[Management, JMX/JBoss] - Re: How to have multiple instances of an MBean
by dimitris@jboss.org
By design mbeans must handle their own concurrency, as many threads can be accessing them.
Dynamic mbeans can alter their mbean interface dynamically, e.g. now they report 3 attributes and 2 operation, then next moment 5 attributes and 4 operations, although this is not very common.
Conceptually, the mbean would report a single MBeanInfo, at any given point in time, in practise, you can alter the reported mbeaninfo even for concurrent requests, but this is certainly a sick thing to do.
Dynamic mbeans are really meant for adapting their interface to a particular backend/resource upon creation, plus they are supposed to be a little faster (no reflective calls), but harder to code. They are not meant for changing their interface every millisecond.
I think you should start the other way round. What you want to do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119122#4119122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119122
18 years, 3 months
[JBoss Seam] - Re: Wildcard for pages action
by mmichalek
There's nothing wrong with that.
However, it's not possible for me to use from-action as defined by Seam because most of my actions are being passed into facelet components as strings. Inside the facelet component, I execute the action at the right time:
| action="#{componentUtils.invokeAction(action)}"
|
This causes a problem with navigation because all of the action expressions look the same!
Also, we are designing our actions to be very granular and only expose one execute() method. Action.exeucte() either returns NULL (failure) or it's component name (success). (This seems a lot more simple than asking developers to return different arbitrary outcomes). When an action succeeds and returns it's component name, I will want to be able to conditionally navigate based on the state of the system.
For example:
| <navigation from-action="searchAction">
| <rule if="#{searchManager.searchResults.size == 1}">
| <redirect view-id="/showRecord.xhtml" />
| </rule>
| <rule if="#{searchManager.searchResults.size > 1}">
| <redirect view-id="/SearchResults.xhtml" />
| </rule>
| </navigation>
|
Let me know what you think of all of this and if you see any inherent problems with these approaches.
Thanks,
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119116#4119116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119116
18 years, 3 months