• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS OnMessage problem ..please help  RSS feed

 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I am facing a strange scenario in my application.
I am posting message to the message que,to which i have configured an MDB.
My analysis of the log file revealed that the messages are not reaching the MDB,
beacuse the onMessage() is not getting triggered.

The application is working fine in Development environment.
The only difference i see the test and dev console is that the
message consumer is set to 4 in test and it is set to 2 in dev.

Anybody please help me ,its becomeing critical for our acceptance.

Thanks
 
Louise J Elliott
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first question is whether your MDB is configured to use exactly the same queue name as you are publishing to. It sounds like a configuration issue.

If it isn't that then I'd check that the MDB is actually deployed.
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is that the first two message are always reaching the MDB,but the third message is reached but getting lost somewhere.TO be more clear,i can see in my console that the message count is getting increamented but the onMessage is not getting triggered.
 
Louise J Elliott
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is handling 2 and you have 2 deployed then I suspect that your MDB does not finish handling the messages. Is there anywhere that it could get stuck in a loop? Are you logging just before it exits and can you see those being raised? In your test environment how does it behave if you send it 5 messages seeing as you have 4 configured? Can you change your test environment to have 2 MDBs configured and compare the behaviour?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!