Originally posted by: Muk1234
Hi All, Can anyone help me on how to use JEXIT in one of the rules in the map. I have the foll. class file
package com.mukibm;
public class MukCustomer {
int id;
String firstName,lastName;
public MukCustomer()
{
this.id=100;
firstName="Muks";
lastName="dafsgd";
}
/*
public MukCustomer(int id, String fname, String lname)
{
this.id=id;
firstName=fname;
lastName=lname;
}*/
public String getName()
{
String name="abcdefgh";
return name;
}
public String getFirstName()
{
return firstName;
}
/* public static void main(String args[])
{
MukCustomer mCustomerobj = new MukCustomer(101,"Muks","asdfwan");
}
*/
}
and I am using VALID(JEXIT("com.mukibm.MukCustomer","getName"),FAIL(LASTERRORMSG())) in a map rule.
I have added the jar file in my dtx.ini file .
jar1=C:\Users\mukund\Desktop\Mukjar.jar
But the map doesnt run. It says "FAIL function aborted map" and the audit log says the foll. thing:
<ExecutionSummary MapStatus="Error" mapreturn="30" ElapsedSec="0.0089" BurstRestartCount="0">
<Message>FAIL function aborted map:Java exception occured</Message>
<CommandLine>'C:\Users\mukund\IBM\wtx\workspace\RespDishonor\HpsResponse.mmc'</CommandLine>
<ObjectsFound>12</ObjectsFound>
<ObjectsBuilt>3</ObjectsBuilt>
so basically it says Java exception occured.
Can anyone help me on this.how to run a java function for a map rule?
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange