jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes application up but Messages not processed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "application up but Messages not processed" Watch "application up but Messages not processed" New topic
Author

application up but Messages not processed

Vinny Menon
Ranch Hand

Joined: Jan 10, 2006
Posts: 62

Hi fellow ranchers,
My java application reads messages from a input queue 'A' and sends it to output Queue 'B'.We run our application using autosys job.
At some point in time,the process shows that application is in RU(running) status,however it does not really process the messages.,Messages get piled up in the input Queue A.The log file does not get updated.environment is solaris environment.

Can some one please shed some light on this.I have tried debugging this in my development IDE,but messages get processed properly.

appreciate your help

cheers
vinnym


Regards,Vinny M.
proud Fan of European Champion CHELSEA FC
"If you don't see the bug where you're looking, perhaps you're looking in the wrong place" -James Gosling
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
How does your java Application reads (Consumes) the Messages? Is it through MDB? Also How are you sending messages to Queue B? And who consumes the Messages from Queue B?

I am asking these questions because we had a similar problem in our application once. The Queue B didn't had a reciever and it was so full that the MDB which was trying to send the Message to Queue B was stuck and all the MDBs and Threads listening to Queue A where exhausted.


Amit Tank
Linked In
Vinny Menon
Ranch Hand

Joined: Jan 10, 2006
Posts: 62

Amit,
Thanks for the prompt reply.

We read from the input Q using MessageConsumer class using the method ;

We send the messages using the MessageProducer class using the send method ;

i tried sending 500 messages in my eclipse IDE,none of the messages were stuck,all of them just processed smoothly.

regards
vinny m
[ July 05, 2007: Message edited by: Vinny Menon ]
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
If this receive is done within a transaction, the consumer retains the message until the transaction commits. Also when you use the recieve method it blocks the queue. Why don't you try to use Asyn Consumption? Did you try to take a Thread Dump of the JVM and check what processing is being done?

Some Tips here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application up but Messages not processed