Author |
Message
|
JohnT |
Posted: Tue Mar 04, 2003 3:23 pm Post subject: ActivityImplInvokeResponse from XML message is not respondin |
|
|
Newbie
Joined: 04 Mar 2003 Posts: 7
|
I am sending the following XML message from UPES to EXEXMLINPUTQ of MQ Workflow as a response to an activity
"<?xml version=\"1.0\" standalone=\"yes\"?>" +
"\n <WfMessage>" +
"\n <WfMessageHeader>" +
"\n <ResponseRequired>No</ResponseRequired>" +
"\n <ReplyToQ>Reply2q</ReplyToQ>" +
"\n <ReplyToQMgr>FMCQM</ReplyToQMgr>" +
"\n </WfMessageHeader>" +
"\n <ActivityImplInvokeResponse>" +
"\n <ActImplCorrelID>RUEAAAABABYAAAAAAAAAAAAAAAAAAQAAAAEACsAAAAAAAAAAAAAAAAABQQAAAAEAFgABAAAAAAAAAABF</ActImplCorrelID>" +
"\n <ProgramRC>0</ProgramRC> " +
"\n <Starter>admin</Starter> " +
"\n <ProgramOutputData>" +
"\n <MessageString>" +
"\n <ProgramRC>0</ProgramRC>" +
"\n <MessageString>" +
"\n </ProgramOutputData>" +
"\n </ActivityImplInvokeResponse>" +
"\n </WfMessage>\n\n\n";
MQ workflow not updating the activity of process instance
I need help if I am missing something or doing something wrong
I need advise ASAP
thanks _________________ JohnT |
|
Back to top |
|
 |
Ratan |
Posted: Tue Mar 04, 2003 3:38 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
At a first look, you shoud not be sending in the '\n'.
-Laze |
|
Back to top |
|
 |
JohnT |
Posted: Tue Mar 04, 2003 5:16 pm Post subject: |
|
|
Newbie
Joined: 04 Mar 2003 Posts: 7
|
This is complete program
try {
System.out.println("Creating a QueueConnectionFactory");
factory = new MQQueueConnectionFactory();
((MQQueueConnectionFactory)factory).setQueueManager(QMGR);
// Create a QueueConnection from the QueueConnectionFactory
System.out.println("Creating a Connection");
connection = factory.createQueueConnection();
// Start the connection
System.out.println("Starting the Connection");
connection.start();
System.out.println("Creating a Session");
boolean transacted = false;
session = connection.createQueueSession( transacted,
Session.AUTO_ACKNOWLEDGE);
ioQueue = session.createQueue( QUEUE );
((MQQueue)ioQueue).setTargetClient(1);
System.out.println("Creating a QueueSender");
QueueSender queueSender = session.createSender(ioQueue);
System.out.println( "Creating a TextMessage" );
TextMessage outMessage = session.createTextMessage();
System.out.println("Adding Text");
replytoqu = session.createQueue("SYSTEM.DEFAULT.LOCAL.QUEUE");
outMessage.setJMSReplyTo(replytoqu);
// -------------------------------------------------
// Build the XML message that will start the process
// -------------------------------------------------
String procTempName="MDBTest";
String procInstName = "srini";
String contName = "MessageString";
outString=
"<?xml version=\"1.0\" standalone=\"yes\"?>" +
"\n <WfMessage>" +
"\n <WfMessageHeader>" +
"\n <ResponseRequired>No</ResponseRequired>" +
"\n </WfMessageHeader>" +
"\n <ActivityImplInvokeResponse>" +
"\n <ActImplCorrelID>RUEAAAABABfAAAAAAAAAAAAAAAAAAQAAAAEAFsAAAAAAAAAAAAAAAAABQQAAAAEAF8ABAAAAAAAAAABF</ActImplCorrelID>" +
"\n <ProgramRC>0</ProgramRC> " +
"\n <Starter>admin</Starter> " +
"\n <ProgramOutputData>" +
"\n <MessageReplyString>" +
"\n <ProgramRC>5</ProgramRC>" +
"\n <ILRReply1>5</ILRReply1>" +
"\n <MessageReplyString>" +
"\n </ProgramOutputData>" +
"\n </ActivityImplInvokeResponse>" +
"\n </WfMessage>\n\n\n";
outMessage.setText(outString);
// Ask the QueueSender to send the message we have created
System.out.println( "Sending the message to " + ioQueue.getQueueName() );
queueSender.send(outMessage);
System.out.println("Closing QueueSender");
queueSender.close();
// Closing QueueSesssion.
System.out.println("Closing Session");
session.close();
session = null; _________________ JohnT |
|
Back to top |
|
 |
vennela |
Posted: Tue Mar 04, 2003 8:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Code: |
String procInstName = "srini";
|
That's because you have truncated the name. Either it should be Srinivas or Srinu.
Anyway:
I am not sure if JMS messages are supported by MQWF. I have never tried putting a JMS message for MQWF to process. I don't have the resources to test that now but I would suggest you to do this.
Somehow strip off the JMS portion of the message (until </jms>) and try PUTting that message as the response message. Or put a message with the same data as in your program using a base MQ program and see if that helps.
Please post the results if this helps you
-------
Venny |
|
Back to top |
|
 |
Ratan |
Posted: Tue Mar 04, 2003 10:08 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I have never tried with JMS either, but there is a setting in UPES properties which says "JMS Compliant XML". Give it a shot if you havent done it yet.
-Laze |
|
Back to top |
|
 |
JohnT |
Posted: Wed Mar 05, 2003 11:02 am Post subject: |
|
|
Newbie
Joined: 04 Mar 2003 Posts: 7
|
The following suggestion was solved my problem
"put a message with the same data as in your program using a base MQ program and see if that helps. "
Thank you very much for all help form the forum and special thanks to Vennela _________________ JohnT |
|
Back to top |
|
 |
|