[Design of POJO Server] - Re: To merge or not to merge?
by scott.stark@jboss.org
"adrian(a)jboss.org" wrote : But I think we are talking about different things, at least from
| my understanding of your original post.
|
| There is a need to merge/hide/override at runtime and this
| depends upon the type of metadata (it also includes having the
| ability to query where the data came from).
|
Argreed, but runtime usage vs asking where runtime T.x actually came from seem like two different uses of the composite metadata for the type T. One way to get the runtime view would be to collapse the levels into an instance T. Another would be a T facade over delegating accessors/iterators that do the right thing for each property x of T.
"adrian(a)jboss.org" wrote :
| The full normalized view should be maintained elsewhere.
|
I'm not following what you mean by normalized view?
"adrian(a)jboss.org" wrote :
| When I talk about merging I'm talking about giving the runtime view,
| e.g. getting all the resource-refs for a bean (from all levels).
|
Yes, that is what I would consider as merging as well.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978226#3978226
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978226
19 years, 6 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Summary of approach to HA/Failover
by bstansberry@jboss.com
I don't think the DistributedReplicantManager code is a very good fit for what you're describing. The DRM is really based on this kind of data structure:
Outer Map
-- Key = ejb1
-- Value = Inner Map
-------------- Key = node1 identifier
-------------- Value = replicant (RMI stub, InvokerLocator, your struct etc.)
-------------- Key = node2 identifier
-------------- Value = replicant for targetting node2
-- Key = ejb2
-- Value = Inner Map
Code that "writes" to the DRM (e.g. an EJB deployment process) doesn't care about order; it just publishes a replicant for ejb1.
Code that "reads" the DRM usually wants a List of the replicants associated with ejb1. But DRM provides this by iterating through the Inner Map and ordering the responses based on the current JGroups view. Thus the ordering is fixed.
Messaging needs:
Map
-- Key = node1
-- Value = List
----------- element = struct for node3
----------- element = struct for node4
Here the code that writes has already prepared a properly ordered list based on a pluggable policy. The code that "reads" the DRM needs to get that same list.
Trying to change DRM to make a generic class that can handle both use cases is probably more effort than just creating something new.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978194#3978194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978194
19 years, 6 months