• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS - Cannot retrieve message from queue. Happens intermittently.  RSS feed

 
alrem mashayekhi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a Java class that listens to a database (Oracle) queue table and process it if there are records placed in that queue. It worked normally in UAT and development environments. Upon deployment in production, there are times when it cannot read a record from the queue. When a record is inserted, it cannot detect it and the records remain in the queue. This seldom happens but it happens. If I would give statistic, out of 30 records queued in a day, about 8 don't make it. We would need to restart the whole app for it to be able to read the records.

Here is a code snippet of my class..






Weird thing we cant find any traces of exceptions from the logs.

Can anyone help? by the way we set the receiveTimeout to 10 secs





 
L Foster
Ranch Hand
Posts: 242
14
Android Angular Framework AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with whatever tech you are using, but it might be easier to diagnose if you add some more information.

For instance, you say 8/30 don't make it. Does that mean a record will "remain" in the queue. Does that mean a record is skipped, or does the whole queue just stop? No progress until you restart, or just those records ignored until you restart?

Also, what kind of server are you using for JMS? If you get more specific about all the technology involved, it might be easier to diagnose.
Sorry I am not being more help.
 
alrem mashayekhi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


For instance, you say 8/30 don't make it. Does that mean a record will "remain" in the queue. Does that mean a record is skipped, or does the whole queue just stop? No progress until you restart, or just those records ignored until you restart?


Records will remain in queue until the runnable application is restarted. When the application is restarted, it will now be able to read records that was placed in the queue.

Also, what kind of server are you using for JMS? If you get more specific about all the technology involved, it might be easier to diagnose.
Sorry I am not being more help.


We use Oracle 11g queue tables. Our application which reads from the queue is a runnable standalone java application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!