On 12/04/2009 06:46 AM, Manik Surtani wrote:
> On 4 Dec 2009, at 12:19, Galder Zamarreno wrote:
>>>> I mean, users could create such implementation if they want, but we
>>>> should provide one so that they don't have to do so?
>>> What would the default we provide do? :)
>> Hmmm, the default (called StandaloneJGroupsChannelLookup) should
>> probably do what JBC did which is:
>>
>> - Take the shared transport name or multiplexer name via a property
>> - Take the mux channel factory (prob hardcoded to
>> org.jgroups.JChannelFactory)
>> - Return a JChannel with it:
>>
> JGroups' ChannelFactory is deprecated and no longer recommended for use.
>
>
http://javagroups.cvs.sourceforge.net/viewvc/javagroups/JGroups/src/org/j...
>
I think the JGroups community should come up with and publish something
like ChannelFactory if JGroups itself drops it. It's quite useful -- a
class that parses a stacks.xml and presents an API for instantiating
channels. Reinventing that particular wheel in every project that uses
JGroups seems silly. I'd be perfectly happy to publish the AS's
ChannelFactory impl as a separate module with no dependencies other than
JGroups itself.
If you want to maintain it, we can leave it in JGroups...
--
Bela Ban
Lead JGroups / Clustering Team
JBoss