Just to be sure, you are sending back akka.actor.Status.Failure and not
scala.util.Failure right? It's not obvious from your code example.


On Fri, Mar 14, 2014 at 9:12 AM, bendg25 <[email protected]> wrote:

> Hi
>
> I am trying to get a sample working where messages are redeliverd every
> minute until success.
>
> I have modified this example:
>
> https://github.com/cjwebb/blog-code/tree/master/akka-camel-and-actimemq
>
> So the consumer always sends a failure response:
>
> class SimpleConsumer() extends Actor with Consumer {
>
>   def endpointUri: String = "activemq:foo.bar"
>
>   override def autoAck = false
>
>   def receive = {
>
>     case msg: CamelMessage =>
>
>         println(msg)
>
>         sender ! Failure(new Exception())
>
>   }
>
> }
>
> I expect to see the number of messages enqueued to increase, but the
> messages are still dequeued, what is going wrong here?
>
> --
> >>>>>>>>>> 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.
>



-- 
Raymond Roestenburg

code: http://github.com/RayRoestenburg
blog: http://roestenburg.agilesquad.com
twtr: @RayRoestenburg
book: http://manning.com/roestenburg

-- 
>>>>>>>>>>      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