Author |
Message |
Topic: MDB and SVRCONN channels |
niraj.chaudhary
Replies: 3 Views: 3371
|
Forum: IBM MQ Java / JMS Posted: Sat Apr 26, 2008 2:51 am Subject: MDB and SVRCONN channels |
thanks fjb_saper for the book. got a few good ideas from there.
But, there was nothing on the mdb and svrconn channels. Even the links at the end are very old links and doesn't work anymore. Though ... |
Topic: MDB and SVRCONN channels |
niraj.chaudhary
Replies: 3 Views: 3371
|
Forum: IBM MQ Java / JMS Posted: Fri Apr 25, 2008 6:26 am Subject: MDB and SVRCONN channels |
Hi,
I have an MDB (deployed on WLS 8.1) which implements the onMessage(). It also creates outbound connection for putting messages. The 'initial-beans-in-free-pool' is set to 10 for this MDB.
N ... |
Topic: MQmessage.writeUTF vs MQmessage.writeString |
niraj.chaudhary
Replies: 8 Views: 12965
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 23, 2008 11:10 pm Subject: MQmessage.writeUTF vs MQmessage.writeString |
The following code takes care of sending a text message:
MQMessage.format = MQC.MQFMT_STRING;
I was not aware of the fact that the default format will send bytemessages
thanks for all the hel ... |
Topic: MQmessage.writeUTF vs MQmessage.writeString |
niraj.chaudhary
Replies: 8 Views: 12965
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 22, 2008 9:47 pm Subject: MQmessage.writeUTF vs MQmessage.writeString |
The problem is I tried using both writeString and writeUTF, but in both the case MDB has thrown an exception when trying to create a text message out of incoming message.
Both the sender (implement ... |
Topic: MQmessage.writeUTF vs MQmessage.writeString |
niraj.chaudhary
Replies: 8 Views: 12965
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 22, 2008 5:56 am Subject: MQmessage.writeUTF vs MQmessage.writeString |
Hi,
My MDB is not able to read the messages which are being sent using either MQmessage.writeUTF or MQmessage.writeString. My MDB tries to typecast the incoming messages as Text message?
Can an ... |
Topic: amqsput and amqsget successful, JMS unable to connect |
niraj.chaudhary
Replies: 9 Views: 6197
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 02, 2008 5:39 am Subject: amqsput and amqsget successful, JMS unable to connect |
thanks marcin!
I guess, i need to modify the the bindings file that I am using now. The binding file I am using right now does not have any ip, port or channel mentioned in it.
NC |
Topic: amqsput and amqsget successful, JMS unable to connect |
niraj.chaudhary
Replies: 9 Views: 6197
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 02, 2008 4:36 am Subject: amqsput and amqsget successful, JMS unable to connect |
Hi mvic,
How do you know that your program is using server-bound connection or client bound one? Will there be any change in .bindings file, if it is used for client bound compared to the one which ... |
Topic: amqsput and amqsget successful, JMS unable to connect |
niraj.chaudhary
Replies: 9 Views: 6197
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 02, 2008 2:54 am Subject: amqsput and amqsget successful, JMS unable to connect |
Hi all,
I have MQ server 6.0 on one machine (solaris) and MQ 6.0 client on another (solaris too). From the client machine, whenever I am trying to do amqsput or amqsget, the attempt is succesful. B ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Sun Dec 16, 2007 10:49 pm Subject: Too many channels open |
hi,
In my case i have got 2 mdb's and max instance possible for both of them are 10. So, going by your logic, i should have 41 server connection channels. While I actually have 100 and despite this ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Thu Dec 13, 2007 11:40 pm Subject: Too many channels open |
I still am facing the same problem. I have not been able to find any API using which I can close the conneciton properly. I did follow some suggestin and my code looks like this right now. ( it's depl ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 29, 2007 4:01 am Subject: Too many channels open |
One of the Mq consultant suggested using IBM's jms libraries instead of using BEA jms libraries. (I am using weblogic 8.1sp4).
While I have the jms.jar file that comes along with mq installation i ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Thu Nov 22, 2007 5:06 am Subject: Too many channels open |
It is an MDB and I am opening a connection, only when I need to send the message. While sending...
1. obtain the connection from queue connection factory
2. obtain the session from connection
3. ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Wed Nov 21, 2007 11:51 pm Subject: Too many channels open |
There is one more thing. When one is implementing onMessage() to receive the messages, what about receiever.close()? Can it be the reason for too many channels open or is it some thing that's taken ca ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Wed Nov 21, 2007 10:31 pm Subject: Too many channels open |
fjb_saper wrote:
Yes you missed a whole lot.
Review your finally block.
You should have a try catch finally block in there for each operation:
sender.close()
session.rollback()
sess ... |
Topic: Too many channels open |
niraj.chaudhary
Replies: 22 Views: 17039
|
Forum: IBM MQ Java / JMS Posted: Wed Nov 21, 2007 5:33 am Subject: Too many channels open |
Vitor,
I am getting it when the application is running for a while and then all the clients are throwing 2059. I have a little idea about MQ, but the guy (referred to as MQ consultant in eariler po ... |