ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportUnable to process ITX map using WTX node in IIB Toolkit

Post new topicReply to topic
Unable to process ITX map using WTX node in IIB Toolkit View previous topic :: View next topic
Author Message
sunil548
PostPosted: Wed Aug 19, 2020 9:13 am Post subject: Unable to process ITX map using WTX node in IIB Toolkit Reply with quote

Newbie

Joined: 14 Oct 2011
Posts: 7

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 19, 2020 9:41 pm Post subject: Re: Unable to process ITX map using WTX node in IIB Toolkit Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20400
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
View user's profile Send private message Send e-mail
sunil548
PostPosted: Sun Aug 23, 2020 4:44 am Post subject: Re: Unable to process ITX map using WTX node in IIB Toolkit Reply with quote

Newbie

Joined: 14 Oct 2011
Posts: 7

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 23, 2020 10:25 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20400
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
View user's profile Send private message Send e-mail
sunil548
PostPosted: Sun Aug 23, 2020 10:51 pm Post subject: Reply with quote

Newbie

Joined: 14 Oct 2011
Posts: 7

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 25, 2020 12:44 pm Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20400
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
View user's profile Send private message Send e-mail
sunil548
PostPosted: Fri Aug 28, 2020 8:20 am Post subject: Reply with quote

Newbie

Joined: 14 Oct 2011
Posts: 7

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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportUnable to process ITX map using WTX node in IIB Toolkit
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.