[Design of Management Features on JBoss] - Re: Use of JBAS5 management api's by user apps
by scott.stark@jboss.org
"charles.crouch(a)jboss.com" wrote : So only spec defined metadata is managable for things like .wars and .ears because those are the only things the which the .war and .ear deployers knows about?
|
Yes. An aspect overrides the deployment metadata to incorporate the management changes.
"charles.crouch(a)jboss.com" wrote :
| So if you wanted to add support for non-spec defined metadata you would need to write another deployer?
That is not going to help as deployers run off of the …
[View More]deployment metadata attachments. If it was an mc bean property, or jmx mbean property that controlled the frequency, it would already be managable via the corresponding component deployer.
So, if you make your configuration object an mc mbean, and then inject it, you would have a managable configuration object. We should allow injection of mc beans into ee components via an @Resource(...) annotation.
Otherwise, you would have to replicate behavior the profile service/deployers perform for deployment metadata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133692#4133692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133692
[View Less]
17 years
[Design of JBossCache] - JBCACHE-1303 -- Invalidation not transactional
by bstansberry@jboss.com
Discussion thread for http://jira.jboss.com/jira/browse/JBCACHE-1303.
I think the essence of the issue here is the cache has no mechanism for doing a rollback of an invalidation. So, if you send out a set of invalidations as part of a PREPARE call, there is no way to undo them with a subsequent ROLLBACK.
With PL, this is less of an issue, since even if you don't roll back the invalidation on the other nodes, the cluster remains in a "consistent" state per the invalidation-semantics. That is, …
[View More]for a given FQN, every node in the cluster either has that node with the same state, or doesn't have the node. This is why I say in point #2 in the JIRA description that it's less of an issue. At least that's what I think; comments welcome. :)
For OL, the problem is harder since the invalidation changes the DataVersion of the "tombstone" node. Here, some sort of rollback is needed. Perhaps though it is sufficient to restore the data version to the "tombstone" in the rollback operation.
A side benefit of fixing this is invalidation currently doesn't batch the invalidation messages for a tx. So, if you change 10 nodes in a tx, as part of tx commit JBC sends out 10 invalidation messages. Using a normal PREPARE would eliminate that.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133684#4133684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133684
[View Less]
17 years
[Design of Management Features on JBoss] - Use of JBAS5 management api's by user apps
by charles.crouch@jboss.com
Is it going to be theoretically/practically possible for user applications to make use of the same annotations currently being added to the Datasource/JMS components in AS5?
The idea here would be for a regular .war/.ear application to benefit from the profileservice/metadata repository functionality which is built into the app server.
For example, I have an app that runs a batch job every 60minutes, I would like to make this frequency configurable, but don't want to deal with making this …
[View More]configuration persistent and reading/updating it etc. Instead I just want to annotate that this property and its parent class with the appropriate ManagedProperty/ManagedObject/ManagedComponent annotations, so that I can query the profile service for a management interface, then set the new frequency value, and know that that new value is going to be set on my component when the app server restarts?
I guess this would be somewhat analogous to having user apps make use of the JMX server in JBAS4.x...
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133682#4133682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133682
[View Less]
17 years