IBM Sterling Transformation Extender

 View Only
  • 1.  ITX with Java class adopter

    Posted Mon January 11, 2021 05:14 AM
    Hi All,

    I am exploring ITX with Java class adopter solution for one of the requirement. Can somebody share a sample command or steps to acheive this. i created TT for the java class but not aware how to proceed further. appreciate your inputs.

    ------------------------------
    vijaya prasad
    ------------------------------

    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  RE: ITX with Java class adopter

    IBM Champion
    Posted Tue January 12, 2021 09:41 AM
    Great question!  There is actually a simple example provided in the product install to get you started.  Here is the example description:

    =====================================================================

    The example explains the main concepts of the Java Class adapter,
    such as passing parameters to the class constructors and
    instantiating objects, setting public field values on the objects,
    invoking methods, getting public field values, getting method return
    values and sharing Java objects in the map.

    The example uses primitive Java types, complex Java types (classes)
    and arrays of primitive types.
    ===========================================================

    You can find it in your install directory: (here is where mine is on my machine)
    D:\IBM\TransformationExtender_10.1.0\examples\adapters\javaclas

    ------------------------------
    Stephanie Fetzer
    ------------------------------



  • 3.  RE: ITX with Java class adopter

    Posted Tue January 12, 2021 10:05 AM
    Hi Stephanie ,

    Thanks for your reply. I am using ITX v9 and i cannot see the examples folder in the install directory. Not sure why this folder is not installed while product installation.


    ------------------------------
    vijaya prasad
    ------------------------------



  • 4.  RE: ITX with Java class adopter

    Posted Tue January 12, 2021 12:42 PM
    The reason why you don't see the example folder is because you selected "Default" when you installed Design Studio.  Next time, select "Custom" and check all options in it.

    ------------------------------
    Rex Chan
    ------------------------------



  • 5.  RE: ITX with Java class adopter

    Posted Fri January 15, 2021 02:24 AM
    Thanks Rex. i am able to re-install and can see the examples now. Tq v much.

    ------------------------------
    vijaya prasad
    ------------------------------



  • 6.  RE: ITX with Java class adopter

    IBM Champion
    Posted Sat January 16, 2021 04:56 PM
    Rex Rocks - and he is right - there are many great examples in the /examples directory.  I hope everyone starts pulling them from the install as it is so much easier to start a new project when you see something similar that works.

    ------------------------------
    Stephanie Fetzer
    ------------------------------



  • 7.  RE: ITX with Java class adopter

    IBM Champion
    Posted Mon February 01, 2021 12:39 PM
    Hi,

    I have a video, which is going live (I think) tomorrow, on this very subject:

    https://youtu.be/jVk1RrLM2uM

    I sure hope it explains the import process in adequate detail for you.

    Thank you.

    ------------------------------
    Paul Brett
     
    IBM Sterling Transformation Extender (ITX) Client Support
    ------------------------------

    Attachment(s)

    zip
    Solution.zip   3 KB 1 version
    zip
    Source.zip   5 KB 1 version


  • 8.  RE: ITX with Java class adopter

    Posted Thu May 16, 2024 11:25 AM

    Hi Paul
    How can I pass byte array data to Java Method from Map ?

    My Java method expects data as byte array

    public synchronized static byte[] testjava(byte[] input)

    Many Thanks In Advance



    ------------------------------
    Siddhardha Narnindi
    ------------------------------