[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Re: Used of JGroups shared transport in AS 5
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Apr 15 08:15:59 EDT 2008
anonymous wrote : The AS's channel factory bean is already an AS-specific impl of the ChannelFactory interface. I intend to alter the impl of the "createMultiplexerChannel" methods so they analyze the configuration of the specified protocol stack. If it supports a shared transport, I will return a shared transport channel. If not, I will return a MuxChannel+Multiplexer+JChannel. This is a bit hacky, given the name of the method, but I think the benefits are worth it.
This has evolved further. The AS ChannelFactory will never return a MuxChannel. If a user invokes one of the createMultiplexerChannel methods and the TP config doesn't include a singleton_name, I'm going to create a singleton name for that channel and inject it into its config, log a WARN and return a shared transport channel.
Created name will be "unamed_" + stack_name.
http://jira.jboss.com/jira/browse/JBAS-5442
Re: the hackiness of the AS approach given the name of the method, I suppose it's a bit less hacky than I was thinking. A shared transport channel is still a "multiplexer channel". The multiplexing happens in the transport itself, when it chooses what up-protocol to pass an incoming message to. The fact that JG had another impl that involved an implementation detail class called "Multiplexer" doesn't mean the word multiplexer is forever reserved for that particular impl.
The AS fix is still hacky though, as the method signatures of the two createMultiplexerChannel methods include other params besides the stack name that are now totally ignored.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144208#4144208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144208
More information about the jboss-dev-forums
mailing list