[jbosscache-dev] Re: JGroups Shared Transport support in JBC
Bela Ban
bela at jboss.com
Wed Feb 27 12:32:59 EST 2008
Should have told me yesterday... :-)
Brian Stansberry wrote:
> Bela Ban wrote:
>>
>>
>> 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...
>>
>
> Oh well. I just noticed it not being in the interface when I started
> drafting this. :(
>
>
--
Bela Ban
Lead JGroups / Clustering Team
JBoss - a division of Red Hat
More information about the jbosscache-dev
mailing list