This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Copy message from one Queue to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Copy message from one Queue to another" Watch "Copy message from one Queue to another" New topic
Author

Copy message from one Queue to another

P Igor
Greenhorn

Joined: Nov 20, 2006
Posts: 20
I have a requirement: to copy MQ message written to a Queue (say, Q1 owned by interfacing appln) to another Queue (say Q2 owned by us and used by many other interfacing applications). Other than writing a MDB, is there any way I can copy message from Queue Q1 to another Q2?

The interfacing application does not want to write to our Queue Q2 because they are short of resources & do not want to touch their setup for now

Thanks for your help
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Yeah, really an MDB or some other type of listener or interceptor will be needed. Interceptor is great because it is decoupled, and can be added or removed whenever. JBoss ESB could also intercept the message and send it to two different end-points or queues.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
P Igor
Greenhorn

Joined: Nov 20, 2006
Posts: 20
I am using Websphere. Anything in WAS just like JBoss ESB??
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Originally posted by P Igor:
I am using Websphere. Anything in WAS just like JBoss ESB??


Wish I knew to help you out, but ask your local IBM rep. I am sure it will cost money, you can still use JBoss ESB and not need JBoss App Server, and still use Websphere.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Copy message from one Queue to another
 
Similar Threads
Stop a Queue from consuming messages programatically
MDB listens to a queue different from input queue in WAS5.1x
Question in Generics-1
some general Q's
variable scope question/confusion