[jboss-dev-forums] [Management Development] - To scope or not to scope (domain.xml)

Brian Stansberry do-not-reply at jboss.com
Fri Apr 9 11:59:07 EDT 2010


Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] replied to the discussion

"To scope or not to scope (domain.xml)"

To view the discussion, visit: http://community.jboss.org/message/536610#536610

--------------------------------------------------------------
> Emanuel Muckenhuber wrote:
>  In the end - I think if you configure clustering it would make sense to also deploy the needed service. Where you definitely should not care about which deployments are needed for this. Since we are going to have a domain specific model - each fragment could export a requirement on a module.

The tricky part about this is the  "not care about which deployments are needed for this" bit. Well, thinking about it maybe not all that tricky.  :)  The clustering services come in 4 general "categories"

1. Core capabilites (jgroups integration, infinispan integration)
2. Remote access stuff (HAPartition for cluster-aware proxies, HA-JNDI). You don't know if this is needed as the requirement comes from * an annotation on an unknown EJB in deploy/
* a completely unknown remote client that wants to use HA-JNDI

3. HASingleton (which is just a different use case for HAPartition), no added services
4. Misc odds and ends

So, a <cluster/> element itself implies a need for 1. A couple attributes on <cluster/>, default = true, could control 2 and 3. I'd have to look more closely at the 4 stuff, but I suspect it's either so lightweight we just include it if 2 or 3 are needed, or we can detect the need for it from what other capabilities are required.

So, yeah, using <cluster/> as a trigger to add some extra capabilities sounds good.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/536610#536610]

Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2107]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100409/b3d203b1/attachment.html 


More information about the jboss-dev-forums mailing list