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 » Putting message to MQ is slow

Post new topic  Reply to topic
 Putting message to MQ is slow « View previous topic :: View next topic » 
Author Message
Ady Beth
PostPosted: Wed Oct 11, 2006 9:45 am    Post subject: Putting message to MQ is slow Reply with quote

Newbie

Joined: 11 Oct 2006
Posts: 1

Hi, i'm using the usual code to put a message in a queque but i don't know why it's getting too slow, my code is like this:

public int EnviarMensaje(ByteBuffer Mensaje) {
String sRequest = null;
IHPSObjeto obj = null;
Mensaje.limit(Mensaje.position());
String sData = new String(Mensaje.array());
sData=sData.substring(0,Mensaje.position());

try {
MQMessage requestMsg = new MQMessage();
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_NONE;
requestMsg.clearMessage();
requestMsg.format = MQC.MQFMT_STRING;
requestMsg.replyToQueueManagerName = pMq.m_szQManager;
requestMsg.replyToQueueName = pMq.m_szReplyQueue;
requestMsg.correlationId = pMq.m_szCorrelationId.getBytes();
requestMsg.messageId = pMq.m_szMessageId.getBytes();

requestMsg.writeBytes(sData);

Sistema.log(0,0,"SesionMQ.EnviarMensaje DESPUES DE WRITEBYTES: ");

pMq.qMQRequest.put(requestMsg, pmo);

Sistema.log(0,0,"SesionMQ.EnviarMensaje DESPUES: ");
}
catch(MQException ex){
Sistema.log(this,"ERROR SesionMQ.EnviarMensaje: "+ex.getMessage()+".CC "+ex.completionCode+" Reason Code: "+ex.reasonCode);
}
catch (java.io.IOException ex){
Sistema.log(this,"ERROR SesionMQ.EnviarMensaje: "+ ex);
}
return 1;
}

pMQ is other class where qmnager is inicializated (qMQRequest) and the enviroment.
In my log, i see that the time only in the function put is 1 minute aprox. and the length of the string that i'm trying to put is only of 208.

Any idea for this, 'cause i'm freaking!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Putting message to MQ is slow
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.