Author |
Message
|
sunil548 |
Posted: Wed Aug 19, 2020 9:13 am Post subject: Unable to process ITX map using WTX node in IIB Toolkit |
|
|
Newbie
Joined: 14 Oct 2011 Posts: 8
|
Iam working on one poc calling external java programs using ITX map.I am able to execute the map in ITX 9 toolkit and getting the desired result.
When I am testing the same map in IIB 10 it is not working I am getting some class exception error.I have placed the jar file (which is having the java method that itx map is calling) in external shared classes folder.
I am able to see the below error in windows application log
TESTNODE.default Failed to locate Java class
com.ibm.websphere.dtx.dtxpi.MDispatchFunction.
The Java class com.ibm.websphere.dtx.dtxpi.MDispatchFunction could not be found. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 19, 2020 9:41 pm Post subject: Re: Unable to process ITX map using WTX node in IIB Toolkit |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
sunil548 wrote: |
Iam working on one poc calling external java programs using ITX map.I am able to execute the map in ITX 9 toolkit and getting the desired result.
When I am testing the same map in IIB 10 it is not working I am getting some class exception error.I have placed the jar file (which is having the java method that itx map is calling) in external shared classes folder.
I am able to see the below error in windows application log
TESTNODE.default Failed to locate Java class
com.ibm.websphere.dtx.dtxpi.MDispatchFunction.
The Java class com.ibm.websphere.dtx.dtxpi.MDispatchFunction could not be found. |
I think you have a design flaw in your setup. Why would you need to call and external Java function? Is the java program providing that external function even running? What is the purpose of the dispatch function?
Can it be done from IIB directly (in JCN for example)?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sunil548 |
Posted: Sun Aug 23, 2020 4:44 am Post subject: Re: Unable to process ITX map using WTX node in IIB Toolkit |
|
|
Newbie
Joined: 14 Oct 2011 Posts: 8
|
I have copied the jar file in MQSI Shared classes folder with name RandGr.Jar which is having the below java code
package com.ibm.websphere.dtx.RandGtr;
public class RandGenerator
{
public long randomGenerator()
{
long number = (long) Math.floor(Math.random() * 900000000L);
return number;
}
}
I am able to execute the above java code in ITX map in ITX toolkit but I am not sure why the java class "com.ibm.websphere.dtx.dtxpi.MDisptachFunction' could not be found error is occuring.I have copied in MQSI shared folder only in IIB & trying to execute the ITX map in IIB toolkit using WTX mapping node |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Aug 23, 2020 10:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you sure you have the right return type for WTX. For IIB it should long[] and long[0] would have the value... Could be that the function cannot be found because it doesn't have the expected signature...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sunil548 |
Posted: Sun Aug 23, 2020 10:51 pm Post subject: |
|
|
Newbie
Joined: 14 Oct 2011 Posts: 8
|
I have tried with other jar file which is having below java code
package class UName {
public String UNameStringValue(String Nm)
{
return Nm.toUpperCase();
}
}
But I am facing similar error in IIB toolkit using ITX node when executing the ITX map which calling the mentioned java function |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 25, 2020 12:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
sunil548 wrote: |
I have tried with other jar file which is having below java code
package class UName {
public String UNameStringValue(String Nm)
{
return Nm.toUpperCase();
}
}
But I am facing similar error in IIB toolkit using ITX node when executing the ITX map which calling the mentioned java function |
Verify the required signature when calling java (static) functions from WTX. I know from IIB you need an array as the return type...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sunil548 |
Posted: Fri Aug 28, 2020 8:20 am Post subject: |
|
|
Newbie
Joined: 14 Oct 2011 Posts: 8
|
I have copied the dtxpi.jar in MQSI shared classes folder after that WTX mapping node is not throwing error and getting desired result |
|
Back to top |
|
 |
|