Does the following answer your question?

If a processor emits more than one outbound message per inbound
Persistent message
it *must* use a separate channel for each outbound message to ensure that
confirmations are uniquely identifiable, otherwise, at-least-once message
delivery semantics do not apply. This rule has been introduced to avoid
writing additional outbound message identifiers to the journal which would
decrease the overall throughput. It is furthermore recommended to collapse
multiple outbound messages to the same destination into a single outbound
message, otherwise, if sent via multiple channels, their ordering is not
defined.

Regards,
Patrik


On Wed, Mar 19, 2014 at 5:00 AM, Daniel Wang <[email protected]> wrote:

> Can I use 'withPayload' to send the same persistent message to two
> destinations using one channel? as below:
>
>    case p @ Persistent(payload, seq) =>
>
>         val p2 = p.withPayload(newPayload)
>
>         channel forward Deliver(p2, path1)
>
>         channel forward Deliver(p2, path2)
>
>
>
>  If not, what's the solution then?
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to