Please post some example code. Also, what Akka and Camel version are you
using?
Thanks,
Martin
Am 14.11.11 10:31, schrieb Christophe Pache:
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
Cheers,
Martin
Am 14.11.11 11:05, schrieb Christophe Pache:
--
Am 14.11.11 11:05, schrieb Christophe Pache:
> Hi Martin,
>
> Thank you to consider my problem.
>
> Here is some pasties that should be relevant : the test and the
> producer http://pastebin.com/bxxz4cXb
receiveBeforeProduce (PartialFunction[Any, Any]) must return the actual
message being produced. Your implementation returns Unit (which causes
the 'empty' exchanges you reported).
> I'm working with akka 1.2 and I depend on camel 2.8.1.
>
> On Nov 14, 10:45 am, Martin Krasser<krass...@googlemail.com> wrote:
>> Hi Christophe,
>>
>> Please post some example code. Also, what Akka and Camel version are you
>> using?
--
I'm now thinking on the lifecycle of my producers. Thus, the
possibility to send administrative messages for example (a dummy idea
would be to discard exchanges null and with this, by returning Unit on
receiveBeforProduce for example)
Of course, this is an advanced feature (and perhaps not relevant), I'm
not sure at the moment I need it in my current project, but I would
really be interested to have your opinion on this point.
Thanks in advance
All the best
Christophe
On Nov 15, 8:08 am, Martin Krasser <krass...@googlemail.com> wrote:
> Hi Christophe,
>
> Am 14.11.11 11:05, schrieb Christophe Pache:
> hb
> > Hi Martin,
>
> > Thank you to consider my problem.
>
> > Here is some pasties that should be relevant : the test and the
> > producerhttp://pastebin.com/bxxz4cXb
>
> receiveBeforeProduce(PartialFunction[Any, Any]) must return the actual
Am 21.11.11 08:28, schrieb Christophe Pache:
> Thanks again for your help, Martin
>
> I'm now thinking on the lifecycle of my producers. Thus, the
> possibility to send administrative messages for example (a dummy idea
> would be to discard exchanges null and with this, by returning Unit on
> receiveBeforProduce for example)
You manage the lifecycle of producer actors via ActorRef's start() and
stop() methods. What else do you need for lifecycle management? If you
want certain messages not being produced by the producer actor, override
receive:
class MyProducer extends Actor with Producer {
override def receive = {
case DoNotProduce() => ...
case msg => super.receive(msg)
Thanks for your advice. I was speaking about the Camel
SuspendableService.