[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - TransporterClient lacking create wrappers

cbordelo do-not-reply at jboss.com
Tue Mar 6 15:59:55 EST 2007


Is it just me or does anyone else notice that TransporterClient.java seems to lack coherent constructors and create methods.

just today i added this very simple "hack" createTransporterClient method as there seemed to be no way to actually use the feature for LoadBalancing in a proxy manner (and i thought Transporters was all about simple & proxy!).

The total code i added to make Transporter loadbalancing useable:

 public static Object createTransporterClient(String locatorURI, Class
 targetClass, LoadBalancer loadbalancer) throws Exception {
           Object rem = createTransporterClient(locatorURI, targetClass,
 true);          ((TransporterClient)Proxy.getInvocationHandler(rem)).loadBala
ncer = loadbalancer;     
     return rem;
     }




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025583#4025583

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025583



More information about the jboss-dev-forums mailing list