IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

jexit using 8.2.0.1

  • 1.  jexit using 8.2.0.1

    Posted Mon May 19, 2008 01:57 PM

    Originally posted by: SystemAdmin


    Hi All,

    I am trying to use the jexit function in wtx 8.2.0.1 and not having any success. Has anyone been able to use jexit successfully.

    I am using the sample class file that is supplied.

    java class sample:

    package com.ibm.websphere.dtx.test;
    public class TestJExit {
    /* Person person = new Person(); */
    public TestJExit() {
    }
    public String toUpper(String test) {
    return test.toUpperCase();
    }
    public String Concat(String test1, String test2) {
    return test1 + test2;
    }
    public Integer toNumber(String test1) {
    return new Integer(test1);
    }
    public Double toDouble(String test1) {
    return new Double(test1);
    }
    public void toNothing() {
    }
    public int returnint() {
    return 9;
    }
    public byte returnbyte() {
    return 8;
    }
    /* public Person getPerson() {
    return person;
    } */
    }

    I have also added the java class directory to my system CLASSPATH.

    my wtx rule is JEXIT ("com.ibm.websphere.dtx.test.TestJExit " , "toUpper" , "Websphere")

    I am running on win xp, java version 1.6.0_05

    Any help is appreciated.

    Tom
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: jexit using 8.2.0.1

    Posted Tue May 20, 2008 07:44 AM

    Originally posted by: SystemAdmin


    Looks like there is a space at the end of the classname. Once I fixed it, I am able to run the map fine.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: jexit using 8.2.0.1

    Posted Tue May 20, 2008 10:11 AM

    Originally posted by: SystemAdmin


    Hi

    Still having a problem with jexit. I had fixed the class by removing the space, compiled the class using
    dos command javac and created class file. I then went into wtx8.2.0.1 created a new map and added my rule
    jexit. Compiled map and ran it, all I get back is " function aborted map".

    I updated my rule
    =VALID(JEXIT ("com.ibm.websphere.dtx.test.TestJExit" , "toUpper" , "Websphere"), FAIL(LASTERRORCODE( )))

    Tom
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: jexit using 8.2.0.1

    Posted Wed June 04, 2008 12:27 PM

    Originally posted by: SystemAdmin


    Hi All,

    I am getting this error "java.lang.Exception: java.lang.ClassNotFoundException: com.ibm.websphere.dtx.test.TestJExit" when I try to run my map. I have added the
    class file to my system CLASSPATH=c:\TestJExit.class;c:\

    I am not familar with eclipse, so do I need to add some variable to
    the eclipse ide that points to my class file?

    Any help or additional instructions to set up my WTX eclipse environment will
    be much appreciated

    Thanx Tom
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: jexit using 8.2.0.1

    Posted Mon June 16, 2008 02:09 PM

    Originally posted by: SystemAdmin


    Hi,
    You need to add the location of the jar file that includes your java code to the file:
    <WTX_INSTALL_DIR>/dtx.ini file under

    External Jar Files
    jar1=your jar file full path

    Good luck
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: jexit using 8.2.0.1

    Posted Mon June 16, 2008 03:00 PM

    Originally posted by: SystemAdmin


    Hi Liron,

    I am getting this error "java.lang.Exception: java.lang.ClassNotFoundException: com.ibm.websphere.dtx.test.TestJExit"

    I created a jar file and added the full path to my dtx.ini

    External Jar Files
    jar1=C:\Mercator82\Examples\jexit\TestJExit.jar

    have you been able to get it to work.

    Do I need to add something to my eclispe envir for DTX?,Path, other varibles I'm not familar
    with eclipse.

    Any thoughts.

    Thanks Tom
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: jexit using 8.2.0.1

    Posted Wed August 20, 2008 02:06 AM

    Originally posted by: SystemAdmin


    Hi,
    You just have to add the jar location to dtx.ini (as you did) and restart the Design Studio.
    well - you've probably done that by now...
    Did you manage to activate the Jexit?
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 8.  Re: jexit using 8.2.0.1

    Posted Wed October 29, 2008 03:26 PM

    Originally posted by: SystemAdmin


    HI All,

    Has anyone been successfully in using the JEXIT function. I am running WTX 8.2.0.3 and still
    can not get it to work. I'm still getting error "java.lang.Exception: java.lang.ClassNotFoundException: com.ibm.websphere.dtx.test.TestJExit"

    I am using the same sample that is defined in documentation.

    I have created the jar file and put the path and name in my dtx.ini jar=

    I am using the basic install on WTX with no modifications to the eclipse startup bat.

    Am I missing something in the startup bat file or do I need to add a path to eclipse????

    Any help would be very appreciated.

    Tom
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 9.  Re: jexit using 8.2.0.1

    Posted Fri October 31, 2008 04:52 AM

    Originally posted by: Subh


    Please make sure you have removed the remarks ";" - semicolon in the dtx.ini file that comes by default.

    By default it looks like
    External Jar Files
    ;jar1=
    ;jar2=
    ;...

    change that to
    External Jar Files
    jar1=c:\temp\temp.jar
    ;jar2=
    ;...

    Hope this helps.

    Thanks,
    Subha
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 10.  Re: jexit using 8.2.0.1

    Posted Thu December 20, 2012 04:31 AM

    Originally posted by: Muk1234


    Guys, I am facing same problem. Not able to use JEXIT even if i gave proper path of my jar file in the dtx.ini file. Tomw did u get the solution? Can anyone help me on this please. I am a newbie to WTX and we are using wtx 8.4. I am getting the same error FAIL function aborted the map and when i see the log, i can see only "Java exception occurred". I have used VALID(JEXIT("MYCLASSNAME","FUNCTIONNAME"),FAIL(LASTERRORMSG())) as the component rule. Any help would be appreciated. Thanks in advance
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 11.  Re: jexit using 8.2.0.1

    Posted Tue December 25, 2012 08:01 PM
      |   view attached

    Originally posted by: SystemAdmin


    Attached is the sample with Rule =VALID(JEXIT("com.ibm.websphere.dtx.test.TestJExit", "toUpper", "WebSphere"), LASTERRORMSG())

    The only step, I did is, drop the Jar file (TestJExit.jar) in to WTX Design Studio install directory once I built from the Eclipse project
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)



  • 12.  Re: jexit using 8.2.0.1

    Posted Tue January 29, 2013 03:29 PM

    Originally posted by: Purush_WTX


    @dtx_user : I have few questions for you guys. I am using JEXIT to do lookup from hashtable stored in cache.
    Now I want to know few things.

    1. I have a server running multiple launchers. So is it possible for different maps running on different launchers to access single hashtable. Basically I dont want to create same copy of hashtable in cache for each launchers on the server. Rather I am trying to use this as global variable on a single server and use same hashtable data across many maps running under different launchers.

    2. Do you know / heard any possible issues/challanges using chache for lookup.

    3. How expensive is the use of JEXIT in terms of map performance and resource utilization ? Pros and Cons of JEXIT. What does IBM recommend on use of JEXIT.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 13.  Re: jexit using 8.2.0.1

    Posted Wed January 30, 2013 04:49 PM

    Originally posted by: SystemAdmin


    A) JEXIT will create a JVM with in the same launcher process. Any map with in the same launcher process can access your lookup cache. Across different launcher process is a complete different use case (you need to use shared memory concept to accomplish it).

    B) Using static methods, Singleton pattern and synchronized concepts you can easily accomplish a thread safe lookup.

    C) I would suggest to put the last Q to IBM support team. I do not have any info to share.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 14.  Regarding JEXIT

    Posted Thu January 29, 2015 08:18 AM

    Originally posted by: ManojaM


    I am using JEXIT to execute a .jar file.

    I didn't get ant build errors, after running the map in command server it is showing that map completed successfully.

    Elapsed time 0:00

    Input: 1 of 1           Objects: 1

    Output: 1 0f 1         Objects: 0

    can any one please explain me what it means...?

     


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 15.  Re: Regarding JEXIT

    Posted Wed February 04, 2015 03:30 AM

    Originally posted by: paul.brett


    You resurrected a thread from 2013, and although it is relevant, I recommend you open a new thread.

    To diagnose your issue, you could add :

    +LASTERRORCODE()+LASTERRORMSG()

    ...to your mapping rule containing the JEXIT().  Then add the output of this, to the new thread for review.

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender