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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...