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 Copy message from one Queue to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 17250
    
    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: 17250
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Copy message from one Queue to another