On Wed, Apr 4, 2012 at 8:51 AM, Bruno Matos <[email protected]>wrote:

> On Wed, 2012-04-04 at 12:20 +0100, Gordon Sim wrote:
> > On 04/04/2012 10:49 AM, Bruno Matos wrote:
> > > Hi,
> > >
> > > I'm publishing messages with different addresses (ex:
> > > amp.topic/news.1.soccer, amp.topic/news.2.soccer,
> > > amp.topic/news.1.economy, amp.topic/news.2.economy). With the client
> API
> > > using the Session::messageTransfer method the performance was good, now
> > > with the messaging API, maybe because the overhead of creating senders
> > > for every message, the performance is really bad.
> > >
> > > Is there a way to send messages with different addresses with the same
> > > sender or any other suggestions?
> >
> > Yes, because you are sending them all to the same exchange, i.e.
> > amq.topic, you can create a single sender for amq.topic and then set the
> > subject of each message as appropriate (e.g. news.1.soccer,
> > news.2.economy etc)
>
> Thank you Gordon, I think I missed that in documentation.
>
> I believe this is missing in the docs. We need to add an example in the
programming guide.


> Regards.
>
> --
> Bruno Matos
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to