Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JMS Queue Issue

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, glad to be back after a couple years away from the Java-land (no pun intended).

I'm in the process of learning JBoss' JMS using its default queues (queue/a and queue/b). I found this piece of code from JBoss AS document (I think it's the old version.. v.4.0), and I execute it using JBoss 4.2.1.GA.

I modified the code so that it'll have a Consumer and a Producer classes consuming text-messages from queue/b and queue/a respectively. I found a problem in which the text message I sent to both queues were NOT cleared when it is consumed/retrived.

I'm pretty sure it's not my JBoss setting cause I don't receive any error/warning messages when I start it. Then again, I'm not sure why the text-messages are not cleared despite of the fact I have put the expiration time to it and restart my machine.

Any suggestion will be much appreciated. Thank you in advance for you enlightment on this issue.

The following is the snippet of my Producer class:
Straws are for suckers. Now suck on this tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic