--
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.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
assuming that you're using a producer actor similar to the following:
class MyProducer extends Actor with Producer with Oneway {
def endpointUri = "activemq:topic:retweets-live"
}
When you send a message to this actor with
myProducer ! "whatever"
then the "whatever" message is only added to the actors mailbox after
the ! method returned. Adding the message to the "retweets-live" topic
is done asynchronously. If adding messages to an ActiveMQ topic is much
slower (or not possible at all) than adding messages to the actor's
mailbox, then the mailbox can grow to its maximum size, leading to an
exception that you reported.
If you want to wait for the producer actor to add the message to the
topic, then you'll need to use !!:
myProducer !! "whatever"
and instruct the actor to reply to the original sender (which is not
done by default when the producer actor implements Oneway)
class MyProducer extends Actor with Producer with Oneway {
def endpointUri = "activemq:topic:retweets-live"
override protected def receiveAfterProduce = {
case msg => self.reply("message added to topic")
}
}
In this case the producer actor's mailbox will not grow (but messages
still might pile up somewhere else). Does that help?
Cheers,
Martin
Matthias L. Jugel schrieb:
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Thanks. Will try to find some time to add this to the akka-camel docs.
> <mailto:viktor.kl...@gmail.com>> wrote:
>
>
> Hello Leo,
>
> Is that a question? *confused*
>
> Cheers,
>
> On Tue, Sep 7, 2010 at 2:58 PM, Matthias L. Jugel
> <matthias.ju...@gmail.com
> <mailto:matthias.ju...@gmail.com>>wrote:
> <mailto:akka...@googlegroups.com>.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com
> <mailto:akka-user%2Bunsu...@googlegroups.com><akka-user%2Bunsubscribe@googlegroups
> .com>
> .
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>
>
> --
> Viktor Klang,
> Code Connoisseur
> Work: www.akkasource.com <http://www.akkasource.com>
> Code: github.com/viktorklang <http://github.com/viktorklang>
> Follow: twitter.com/viktorklang
> <http://twitter.com/viktorklang>
> Read: klangism.tumblr.com <http://klangism.tumblr.com>
>
>
>
>
>
>
>
> --
> Martin Krasser
>
> blog: http://krasserm.blogspot.com
> code: http://github.com/krasserm
> twitter: http://twitter.com/mrt1nz
>
>
> --
> 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
> <mailto:akka...@googlegroups.com>.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com
> <mailto:akka-user%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>
>
>
>
> --
> Viktor Klang,
> Code Connoisseur
> Work: www.akkasource.com <http://www.akkasource.com>
> Code: github.com/viktorklang <http://github.com/viktorklang>
> Follow: twitter.com/viktorklang <http://twitter.com/viktorklang>
> Read: klangism.tumblr.com <http://klangism.tumblr.com>
Viktor Klang schrieb:
Nicely explained Martin, thanks!
Thanks. Will try to find some time to add this to the akka-camel docs.
Like it. Maybe a high pushTimeOut value is an even better solution in
this case than using !! and an overriden receiveAfterProduce. Will wait
for your work to get into master to play with it and defer documentation.
>
>
>
>
> On Wed, Sep 8, 2010 at 8:36 PM, Martin Krasser
> <kras...@googlemail.com <mailto:kras...@googlemail.com>
> <mailto:kras...@googlemail.com
> <mailto:viktor.kl...@gmail.com
> <mailto:viktor.kl...@gmail.com>>> wrote:
>
> Hello Leo,
>
> Is that a question? *confused*
>
> Cheers,
>
> On Tue, Sep 7, 2010 at 2:58 PM, Matthias L. Jugel
> <matthias.ju...@gmail.com
> <mailto:matthias.ju...@gmail.com>
> <mailto:matthias.ju...@gmail.com
> <mailto:akka...@googlegroups.com
> <mailto:akka...@googlegroups.com>>.
>
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com
> <mailto:akka-user%2Bunsu...@googlegroups.com>
>
> <mailto:akka-user%2Bunsu...@googlegroups.com
> <mailto:akka-user%252Buns...@googlegroups.com>><akka-user%2Bunsubscribe@googlegroups
>
>
> .com>
> .
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>
> --
> Viktor Klang,
> Code Connoisseur
> Work: www.akkasource.com
> <http://www.akkasource.com> <http://www.akkasource.com>
> Code: github.com/viktorklang
> <http://github.com/viktorklang> <http://github.com/viktorklang>
> Follow: twitter.com/viktorklang
> <http://twitter.com/viktorklang>
> <http://twitter.com/viktorklang>
> Read: klangism.tumblr.com
> <http://klangism.tumblr.com> <http://klangism.tumblr.com>
>
>
>
>
>
>
> -- Martin Krasser
>
> blog: http://krasserm.blogspot.com
> code: http://github.com/krasserm
> twitter: http://twitter.com/mrt1nz
>
>
> -- 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 <mailto:akka...@googlegroups.com>
> <mailto:akka...@googlegroups.com
> <mailto:akka...@googlegroups.com>>.
>
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com
> <mailto:akka-user%2Bunsu...@googlegroups.com>
> <mailto:akka-user%2Bunsu...@googlegroups.com
> <mailto:akka-user%252Buns...@googlegroups.com>>.
>
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>
>
>
>
> --
> Viktor Klang,
> Code Connoisseur
> Work: www.akkasource.com <http://www.akkasource.com>
> <http://www.akkasource.com>
> Code: github.com/viktorklang <http://github.com/viktorklang>
> <http://github.com/viktorklang>
> Follow: twitter.com/viktorklang
> <http://twitter.com/viktorklang> <http://twitter.com/viktorklang>
> Read: klangism.tumblr.com <http://klangism.tumblr.com>
> <http://klangism.tumblr.com>
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "Akka User List" group.
> To post to this group, send email to
Viktor Klang schrieb:Like it. Maybe a high pushTimeOut value is an even better solution in this case than using !! and an overriden receiveAfterProduce. Will wait for your work to get into master to play with it and defer documentation.
On Wed, Sep 8, 2010 at 8:53 PM, Martin Krasser <kras...@googlemail.com <mailto:kras...@googlemail.com>> wrote:
Viktor Klang schrieb:
Nicely explained Martin, thanks!
Thanks. Will try to find some time to add this to the akka-camel docs.
On the topic of mailboxes, here's what I'm currently working on:
http://github.com/jboner/akka/blob/safe_mailboxes/akka-actor/src/main/scala/dispatch/MessageHandling.scala#L73
"Viktor Klang" <viktor...@gmail.com> wrote:
>>> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
>>> <mailto:akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
>>> ><akka-user%2Bunsubscribe@googlegroups
>>>
>>> .com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/akka-user?hl=en.
>>>
>>> --
>>> Viktor Klang,
>>> Code Connoisseur
>>> Work: www.akkasource.com <http://www.akkasource.com>
>>> Code: github.com/viktorklang <http://github.com/viktorklang>
>>> Follow: twitter.com/viktorklang
>>> <http://twitter.com/viktorklang>
>>> Read: klangism.tumblr.com <http://klangism.tumblr.com>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -- Martin Krasser
>>>
>>> blog: http://krasserm.blogspot.com
>>> code: http://github.com/krasserm
>>> twitter: http://twitter.com/mrt1nz
>>>
>>>
>>> -- 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
>>> <mailto:akka...@googlegroups.com>.
>>>
>>> To unsubscribe from this group, send email to
>>> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
>>> <mailto:akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
>>> >.
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/group/akka-user?hl=en.
>>>
>>>
>>>
>>>
>>> --
>>> Viktor Klang,
>>> Code Connoisseur
>>> Work: www.akkasource.com <http://www.akkasource.com>
>>> Code: github.com/viktorklang <http://github.com/viktorklang>
>>> Follow: twitter.com/viktorklang <http://twitter.com/viktorklang>
>>> Read: klangism.tumblr.com <http://klangism.tumblr.com>
>>>
>>>
>>> --
>>> 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<akka-user%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/akka-user?hl=en.
>>>
>>
>>
>> --
>> Martin Krasser
>>
>> blog: http://krasserm.blogspot.com
>> code: http://github.com/krasserm
>> twitter: http://twitter.com/mrt1nz
>>
>> --
>> 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<akka-user%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/akka-user?hl=en.
>>
>>
>
>
>--
>Viktor Klang,
>Code Connoisseur
>Work: www.akkasource.com
>Code: github.com/viktorklang
>Follow: twitter.com/viktorklang
>Read: klangism.tumblr.com
>
I was thinking about a pushTimout value of 2*x where x is the average
time for adding a message to a certain ActiveMQ topic. But that was only
a first thought, not sure if it's a good starting point.
> <mailto:akka-user%2Bunsu...@googlegroups.com
> <mailto:akka-user%252Buns...@googlegroups.com>
> <mailto:akka-user%252Buns...@googlegroups.com
> <mailto:akka-user%25252Bun...@googlegroups.com>>><akka-user%2Bunsubscribe@googlegroups
> <mailto:akka...@googlegroups.com
> <mailto:akka...@googlegroups.com>
> <mailto:akka...@googlegroups.com
> <mailto:akka...@googlegroups.com>>>.
>
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com
> <mailto:akka-user%2Bunsu...@googlegroups.com>
> <mailto:akka-user%2Bunsu...@googlegroups.com
> <mailto:akka-user%252Buns...@googlegroups.com>>
> <mailto:akka-user%2Bunsu...@googlegroups.com
> <mailto:akka-user%252Buns...@googlegroups.com>
> <mailto:akka-user%252Buns...@googlegroups.com
> <mailto:akka-user%25252Bun...@googlegroups.com>>>.
>
>
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>
>
>
>
> -- Viktor Klang,
> Code Connoisseur
> Work: www.akkasource.com <http://www.akkasource.com>
> <http://www.akkasource.com>
> <http://www.akkasource.com>
> Code: github.com/viktorklang
> <http://github.com/viktorklang> <http://github.com/viktorklang>
> <http://github.com/viktorklang>
> Follow: twitter.com/viktorklang
> <http://twitter.com/viktorklang>
> <http://twitter.com/viktorklang>
> <http://twitter.com/viktorklang>
>
> Read: klangism.tumblr.com
> <http://klangism.tumblr.com> <http://klangism.tumblr.com>
> <http://klangism.tumblr.com>
>
>
> -- 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
> <mailto:akka...@googlegroups.com>
Has there been any update on this? I did have other items to work on.
I selected the !! operation fix as it gives me some flow control.
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.
Leo.
On Oct 8, 10:05 am, √iktor Klang <viktor.kl...@gmail.com> wrote:
> On Fri, Oct 8, 2010 at 9:13 AM, Matthias L. Jugel
> <matthias.ju...@gmail.com>wrote:
> > > > <mailto:akka...@googlegroups.com>...
>
> read more »
Sorry for the delay, I was not looking into the ML recently and kept
on coding.
Actually, I use the defaults (the docs say unbounded mailbox). It is
akka 0.10.
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.
champloo:akka leo$ sbt update
Getting Scala 2.7.7 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.7.7/scala-compiler-2.7.7.jar
...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.7.7!scala-compiler.jar
(14688ms)
:: problems summary ::
:::: WARNINGS
[NOT FOUND ] org.scala-lang#scala-library;2.7.7!scala-library.jar
(0ms)
==== Maven2 Local: tried
Any ideas?
Leo.
On Oct 13, 12:47 pm, √iktor Klang <viktor.kl...@gmail.com> wrote:
> On Wed, Oct 13, 2010 at 12:42 PM, Matthias L. Jugel <
>
> > > > > > at...
>
> read more »
I'd like to. However, sbt is not helping me. It downloads scala-
compile 2.7.7. and then fails to find scala-library 2.7.7 in my local
maven2 repo. I don't understand why it does not even try to
download...
champloo:akka leo$ sbt update
Getting Scala 2.7.7 ...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.7.7/scala-compiler-2.7.7.jar
...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.7.7!scala-compiler.jar
(14688ms)
:: problems summary ::
:::: WARNINGS
[NOT FOUND ] org.scala-lang#scala-library;2.7.7!scala-library.jar
(0ms)
==== Maven2 Local: tried
Any ideas?
>
> read more »
--
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.
Leo.
On Oct 13, 12:47 pm, √iktor Klang <viktor.kl...@gmail.com> wrote:
> On Wed, Oct 13, 2010 at 12:42 PM, Matthias L. Jugel <
>
> > > > > > at...
>
> read more »
I am going to revert back to the 0.10 config for now to concentrate on
other issues. Let me know when I can try again.
Leo.
On Oct 14, 7:51 pm, "Matthias L. Jugel" <matthias.ju...@gmail.com>
> > > > > > > ...
>
> read more »
Actually, it is a bit of a pain with maven2. The UUID library used has
a non-existant repository (http://eaio.com/maven2 gives a 404 not
found) and sjson-0.8 is also not available.
I am going to revert back to the 0.10 config for now to concentrate on
other issues. Let me know when I can try again.
> > > > > > > ...
>
> read more »
--
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.
You need install a bounded mailbox for the subscriber. The threads that
read from the ActiveMQ topic and put messages to the actor mailbox are
then blocked. These threads are managed by Camel (and are independent of
the threads managed by Akka). When an exception is thrown (after a
pushTimeout) by a full actor mailbox, there should be even ways for
ActiveMQ to do a re-delivery (after some delay). Refer to the ActiveMQ
and Camel docs for details.
>> read more �
https://www.assembla.com/spaces/akka/tickets/473-allow-consumer-actors-to-customize-their-own-routes
Not sure if I'll address that for Akka 1.0 because
- applications can already install custom routes (e.g. with specific
error handlers) to any actor and
- global error handler are often sufficient
Am 17.10.10 17:59, schrieb Martin Krasser:
> Hi Matthias,
>
> I'm getting an XML parser error with your XML config. Here's what I've
> used locally
>
> <camel:errorHandler id="deadLetterErrorHandler"
> type="DeadLetterChannel" deadLetterUri="log:dead">
> <camel:redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="1000"
> logHandled="true" asyncDelayedRedelivery="true"/>
> </camel:errorHandler>
>
> <camel:camelContext id="camelContext"
> errorHandlerRef="deadLetterErrorHandler">
> <!-- ... -->
> </camel:camelContext>
>
> ...
>
> With this configuration in place, messages that couldn't be added to
> the mailbox are redelivered, as expected.
>
> Please note that this configuration applies to *all* routes to
> consumer actors (which shouldn't be a problem in most cases). To have
> a redelivery policy for a single consumer actor, a custom route to
> that actor must be installed ATM (see akka-camel docs). I'll think
> about an extension to akka-camel to make this more easy for consumer
> actor implementors.
>
> Hope that helps.
>
> Cheers,
> Martin
>
>
> Am 17.10.10 16:11, schrieb Matthias L. Jugel:
I'm getting an XML parser error with your XML config. Here's what I've
used locally
<camel:errorHandler id="deadLetterErrorHandler" type="DeadLetterChannel"
deadLetterUri="log:dead">
<camel:redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="1000"
logHandled="true" asyncDelayedRedelivery="true"/>
</camel:errorHandler>
<camel:camelContext id="camelContext"
errorHandlerRef="deadLetterErrorHandler">
<!-- ... -->
</camel:camelContext>
...
With this configuration in place, messages that couldn't be added to the
mailbox are redelivered, as expected.
Please note that this configuration applies to *all* routes to consumer
actors (which shouldn't be a problem in most cases). To have a
redelivery policy for a single consumer actor, a custom route to that
actor must be installed ATM (see akka-camel docs). I'll think about an
extension to akka-camel to make this more easy for consumer actor
implementors.
Hope that helps.
Cheers,
Martin
Am 17.10.10 16:11, schrieb Matthias L. Jugel:
> --
> 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.
>
>
--
Jonas Bonér
work: http://akkasource.org
code: http://github.com/jboner
blog: http://jonasboner.com
twtr: @jboner
Thanks for preparing a sample app. I'll take look at it as soon as I
can. I'm quite busy at the moment with other things but should have time
for it on Wed. Maybe someone else wants to jump in (?) ...
Cheers,
Martin
Am 18.10.10 16:57, schrieb Matthias L. Jugel:
Am 20.10.10 09:41, schrieb Jonas Bon�r:
--
On 20 October 2010 09:45, Martin Krasser <kras...@googlemail.com> wrote:
> This seems to be a configuration issue in the app. I'm about to take a look
> at ... will give an update soon.
>
> Am 20.10.10 09:41, schrieb Jonas Bonér:
--
I have done a simple test, copying all dependent jar files using maven
to a directory and starting using
java -cp thejarfiles twimpact.akka.camel.AkkaCamelTest subscriber
Now it runs, so it is actually the problem with the packaging. Looks
like I will have to dig out my old launcher from SnipSnap that just
unpacks the jar files on launch, sets the class path and runs the main
class. jar-with-dependencies is just stupid when it comes to conflict
resolving, so I guess the problem lies with the fact that it
overwrites files with the same name from different jars.
Am 20.10.10 10:14, schrieb Matthias L. Jugel:
> I have done a simple test, copying all dependent jar files using maven
> to a directory and starting using
>
> java -cp thejarfiles twimpact.akka.camel.AkkaCamelTest subscriber
>
> Now it runs, so it is actually the problem with the packaging. Looks
> like I will have to dig out my old launcher from SnipSnap that just
> unpacks the jar files on launch, sets the class path and runs the main
> class. jar-with-dependencies is just stupid when it comes to conflict
> resolving, so I guess the problem lies with the fact that it
> overwrites files with the same name from different jars.
>
> Leo.
>
>
> On Oct 20, 9:45 am, Martin Krasser<krass...@googlemail.com> wrote:
>> This seems to be a configuration issue in the app. I'm about to take a
>> look at ... will give an update soon.
>>
>> Am 20.10.10 09:41, schrieb Jonas Bon�r:
Am 17.10.10 18:10, schrieb Martin Krasser:
Awesome, great work Martin! :)
On Nov 10, 2010 10:01 AM, "Martin Krasser" <kras...@googlemail.com> wrote:
I finally had some time to resolve that ticket and pushed it to master. Among other features, it allows you to install custom error handlers for routes to individual consumer actors. So there's no need any more to install the error handler globally. More at http://doc.akkasource.org/Camel#intercepting-route-construction.
Am 17.10.10 18:10, schrieb Martin Krasser:
>
> I also created a ticket for that:
>
> https://www.assembla.com/spaces/akka/tickets/473-allow-c...