just tried this locally:
class TempProducer extends Actor with Producer {
def endpointUri = "http://localhost:8765/blah" // also tried
jetty:http://localhost:8765/blah
override def receiveAfterProduce = {
case message: Message => println("received message")
case failure: Failure => println("received failure")
}
}
Usage:
CamelServiceManager.startCamelService
val producer = actorOf[TempProducer].start
producer ! "blah"
This prints
"received failure"
to stdout as expected (failure cause was a 'connection refused'). Can
you share your producer actor code with me so that I can reproduce your
problem?
Thanks,
Martin
Am 01.10.10 13:40, schrieb Raymond Roestenburg:
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
Background: the jetty producer endpoint supports asynchronous
request/reply. Responses are added to the producer actor's mailbox
wrapped inside MessageResult/FailureResult. These are special wrappers
handled by Producer.receive to seperate them from request messages sent
to the producer actor. The http producer endpoint only supports
synchronous request/reply and the response is directly passed to
receiveAfterProduce (without adding it to the producer actor's mailbox).
That's why you see this issue only with the jetty endpoint URI.
Am 01.10.10 16:02, schrieb Raymond Roestenburg:
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.