File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Stop task from the queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stop task from the queue " Watch "Stop task from the queue " New topic
Author

Stop task from the queue

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114
Hi

I have MDB where I start process of sending mails. I have a list of emails in file, and remove one after another. Now I'd like to add function of stopping this task. I've added a check of STATUS attribute in the file. So, when task will see that status is STOPPED should leave sending mails function. The problem is that message with request of stop (it invokes method that changes status in xml file) goes to end of the queue (which is quite logical...).

Could anybody give me a hint what to do? This is JBoss' MDB with Queue destination.

Thanks in advance,
Michal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stop task from the queue
 
Similar Threads
Updating rows in result set, should select for update be used?
I need to check for email in my J2EE app, please help??
JMS Queue problem
JMS Message Driven Bean
Container behaviour for MDB with timers