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 Index » IBM MQ Java / JMS » Invalid COA Report option

Post new topic  Reply to topic
 Invalid COA Report option « View previous topic :: View next topic » 
Author Message
rkford11
PostPosted: Fri Jun 29, 2007 6:27 am    Post subject: Invalid COA Report option Reply with quote

Partisan

Joined: 06 Jun 2004
Posts: 316

we are using MQ Series control in the weblogic server to integrate with MQ server. Here is our code

public void setMQMDHeaders() throws Exception
{
Logger.logDebugMsg("Start of MakeMQHeader:setMQMDHeaders method");

try {
this.mqHeaders = com.bea.wli.control.mqmdHeaders.MQMDHeadersDocument.Factory.newInstance();
com.bea.wli.control.mqmdHeaders.MQMDHeadersDocument.MQMDHeaders header = this.mqHeaders.addNewMQMDHeaders();

header.setMessageType(Integer.toString((MQC.MQMT_DATAGRAM)).toString());
header.setPriority(Integer.toString(1));
header.setExpiry(Integer.toString(5000));

ReportOptions reportOptions = ReportOptions.Factory.newInstance();
reportOptions.setCOA(Integer.toString(MQC.MQRO_COA));
header.setReportOptions(reportOptions);



header.setPersistence(Integer.toString(MQC.MQPER_PERSISTENT));
header.setFormat(MQC.MQFMT_STRING);
header.setCharacterSet("437");
header.setReplyToQueueName("ERROR");


Logger.logDebugMsg(" MQMD Headers Set : " + mqHeaders.toString());
Logger.logDebugMsg("End of MakeMQHeader:setMQMDHeaders method");
}
catch(Exception ex) {
Logger.logErrorMsg(" Error setting the MQMD Headers " + ex);
ex.printStackTrace();
}
}


But we are getting an error setting up report options.

Error putting the message cooTopreMQControlPutMessageAsString javax.resource.ResourceException: Invalid COA Report option specified in the MQMDHeaders input document


Please guide us in defining the MQ series control properties.

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 29, 2007 10:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I am confused: why are you using java base stuff and not JMS??
Anyways I would have thought setting the MQ constant was enough. Why try to change the type by putting it all toString ??

What are you trying to achieve here that could not be done in JMS ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rkford11
PostPosted: Fri Jun 29, 2007 10:56 am    Post subject: Reply with quote

Partisan

Joined: 06 Jun 2004
Posts: 316

fjb_saper wrote:
I am confused: why are you using java base stuff and not JMS??
Anyways I would have thought setting the MQ constant was enough. Why try to change the type by putting it all toString ??

What are you trying to achieve here that could not be done in JMS ??


Thanks fjb_saper. I have suggested to use JMS but its application team decision to go thru java. setting it as MQ constant

reportOptions.setCOA("COA");

returns me the same error.

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 29, 2007 11:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried:

reportOptions.setCOA(MQC.MQRO_COA); ?

By the way if you read the Using Java manual this option is mapped to JMS.... in the list of propietary JMSX_IBM options...

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Invalid COA Report option
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.