2 Replies Latest reply on Jan 24, 2011 4:56 AM by hipa

    Redefinition EJB proxy interfaces in the TCL

    hipa

      org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory contains this code to ensure that the proxy is visible to the TCL:

       

      protected Object createProxy(ProxyFactory factory, Name name, Map<String, List<String>> referenceAddresses)
      ...
          // Ensure the proxy is visible to the TCL
          proxy = this.redefineProxyInTcl(proxy);
      ...
      

       

      However it is not always necessary. For example in a scripting environment you don't need the proxy interfaces to be available in the TCL. Can we have an option to disable this redefinition?