Queue « Message « JSP-Servlet Q&A





2. common field to send and receive a message from a queue    coderanch.com

Hi all, I need to send a message to a IBM MQ... while sending i have to set a property to the message... My requirement is while retrieving the reply message from the reply queue, i need the same property having the same value. Can you suggest me how to do this Thanks in advance logu SCJP5.0 SCWCD1.4

5. Deleting JMS Messages from the QUEUE    coderanch.com

Hi, I am facing a typical and strange issue. I am trying to send a message from one queue(QUEUE1) to another (QUEUEU2). After reading the message,ie., after it gets consumed.,it should be deleted from the queue.But its not getting deleted and it will be in queue itself. After so many messages were to sent to QUEUE2 queue depth is getting icreased ...





10. Message Queue vs Message Broker    coderanch.com

12. Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?    coderanch.com

20:14:05,421 INFO [STDOUT] This is message 1 20:14:05,421 INFO [STDOUT] This is message 2 20:14:05,421 INFO [STDOUT] This is message 3 20:14:05,421 INFO [STDOUT] This is message 4 20:14:05,421 INFO [STDOUT] This is message 5 20:14:05,437 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy: java.lang.ClassCastException: org.jboss.mq.SpyMessage cannot be cast to javax.jms.TextMessage at Beans.RecievingQueue.onMessage(RecievingQueue.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at ...

14. Thousands of messages are hanging around for delivery in JMS queue. consumerCount=5?    coderanch.com

We use JBoss 5.1 application server. My application server is running into high load. We push thousands of messages into JMS queue. Its goes into situation where I see huge difference between Message count Vs Delivery count of the messages. below is what i am seeing under jboss.messaging.destination of my specific queue in jmx-console: MessageCount R int The number of messages ...

15. JMS - How to receive old messages stored on a Queue ?    coderanch.com

Hi, I have a requirement where I have a standalone java program which will run daily at around 11 PM. Now my code (which runs daily at 11 PM) has following logic. - Connect to JMS - Start listening asynchronously on the queues. (using MessageListener) Once I am done getting all messages I properly close / shut down all JMS connections, ...