Brian Stansberry wrote:
In JGroups 2.6.2, the JGroups team is introducing the shared
transport
as a (superior) alternative to the multiplexer. Want to touch off a
discussion of how to take advantage of that in JBC.
Currently in JBC, user can inject a ChannelFactory into their cache
configuration, and configure a MultiplexerStack (string). If both are
set, JBC calls ChannelFactory.createMultiplexerChannel(), which
returns a MuxChannel.
So, how can JBC get a regular JChannel w/ a shared transport instead
of a MuxChannel? Couple solutions come to mind:
1) Add a configuration property ChannelStack to the JBC config. If
present, JBC calls JChannelFactory.createChannel(String) instead of
ChannelFactory.createMultiplexerChannel(). Basically, the user
indicates what they want by how they configure. This IMHO is the
cleanest and simplest.
Problem is the createChannel(String) method is not exposed in the
ChannelFactory interface; it's only in the JChannelFactory
implementation. JBC needs to use the interface. Bela, can this
method be added to the interface in 2.6.2?
I changed this in the 2.6 branch, however, as 2.6.2 was released
yesterday I cannot add it to 2.6.2...
--
Bela Ban
Lead JGroups / Clustering Team
JBoss - a division of Red Hat