|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Putting message to MQ is slow |
« View previous topic :: View next topic » |
Author |
Message
|
Ady Beth |
Posted: Wed Oct 11, 2006 9:45 am Post subject: Putting message to MQ is slow |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|