dev@glassfish.java.net

Re: Q: Multiple queue destinations, bridge/combine destinations

From: Roy Sindre Norangshol <norrs_at_tihlde.org>
Date: Sat, 19 Apr 2008 10:36:18 +0200

Hi Ramesh

Ramesh wrote:
> Could you please provide more information regarding your requirement.
> Are you looking for a jms-jms bridge in openmq to provide bridging
> functionality with other JMS providers.

Not directly what I'm looking for, I'm looking for some way to merge
multiple openmq queues into one "large" queue, so it's easier to just
deploy _one_ MessageBean to process the
outgoing queue.

I'll try to describe my problem:
I'm a student currently working on my bachelor degree where I'm
developing an easy API for sending&receiving SMS and MMS to cellphones.
Each shortnumber (cellnumber account) has their own incoming queue for
incoming SMS&MMS messages,delivery reports and ack from the requests are
stored.
Each shortnumber also have their own outgoing queue for sending SMS and
MMS, but since I need a service which read all the outgoing queues for
each shortnumber,
I'm hoping for a feature that let you merge all queues starting with
OUTGOING* to ex. a queue named "service_outgoing".

Is this possible? I'm not a fan of the idea to deploy x-MessageBean's -
sounds complicated just for this simple task.


> Are you referring to this feature[1] of Active MQ ?
>

Ofcourse I was not smart enough to bookmark my google findings about
this feature. It was along the lines to insert
 [queue.name.*] destination = service_outgoing in an configuration file.


Or maybe it would just be better to allow every shortnumber account to
inserts messages into one single queue?
but I do see issues with this solution, as I need to be able to tag
reference from which shortnumber added the message to the outgoing
queue.. incase of abuse or someone
inserting non-validated xml messages into the global outgoing queue.



[1] http://activemq.apache.org/jms-to-jms-bridge.html

--
Roy Sindre Norangshol