4 Replies Latest reply on Nov 25, 2011 1:00 PM by rareddy

    How to use the Delegated Translator?

    rakeshsagar

      Hi,

       

      Can anyone tell me how to use the delegated translator feature of Teiid.

      I had gone through the documentation and did not found any usefull information.

       

      Can you explain me the implementation details of the Delegated translator.

       

      Thanks,

      Rakesh

        • 1. Re: How to use the Delegated Translator?
          shawkins

          See also the javadoc for BaseDelegatingExecutionFactory.  In short you create a new translator that is a subclass of BaseDelegatingExecutionFactory.  That is just like any other custom translator development.  In your BaseDelegatingExecutionFactory subclass you can override any of the delegation methods to perform whatever logic you want.  When you use your new translator (let's call its type delegator) in a vdb, you define the translator by wiring in the delegate:

           

          <translator type="delegator" name="my-translator">

               <property value="delegateName" name="name of the delegate instance"/>

               <!-- any custom properties you may have on your custom translator -->

          </translator>

           

          Now my-translator has will proxy all calls to whatever delegate instance you have assigned.  Note that your delegate instance can be any translator instance and can be configured by it's own translator entry.

           

          Steve

          • 2. Re: How to use the Delegated Translator?
            shawkins

            Rakesh,

             

            I logged and worked https://issues.jboss.org/browse/TEIID-1833 to exand our documentation about the delegating translator.  Thanks for bringing it to our attention that it was missing.

             

            Steve

            • 3. Re: How to use the Delegated Translator?
              rakeshsagar

              Hi Steven,

               

              Can you let me know where can I find the new documentation?

               

              Thanks,

              Rakesh

              • 4. Re: How to use the Delegated Translator?
                rareddy

                Check the Developer's Guide in upcoming 7.6 Release.