2 Replies Latest reply on Mar 8, 2007 12:00 PM by tom.elrod

    TransporterClient lacking create wrappers

    bord

      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;
      }