You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Markus Wolf <ma...@nmmn.com> on 2008/10/07 15:23:36 UTC
ActiveMQ as email spool
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
we try to setup an email spool using activemq.
But we are struggeling with a guaranteed delivery. We have a queue for
email send requests which is configured with a camel route and a
try-catch block where the emails are put into another queue if an
exception occured.
The error queue should try a second attempt after 15 minutes, also as
camel route. We tried to use a delayer for this, but in case of broker
shutdown this messages are lost, because the message is already removed
from the queue.
Is there a way around this problem? We already tried to use
CLIENT_ACKNOWLEDGE but it does not seem to work either.
I've also read the thread james had with a developer from james. They
tried the same, but I'm not sure if they succeed.
Any hints on this?
Thanks
Markus Wolf
- --
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852 HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82
http://www.nmmn.com Tel.: +49 40 284 118 -0
Langbehnstrasse 6 Entwicklung: -720
22761 Hamburg Fax: -999
Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software
+++ Hausmesse am 14.11.2008 von 10:00 bis 16:00 Uhr +++
Überzeugen Sie sich auf unserer Hausmesse von unseren Produkten und
Dienstleistungen! Weitere Informationen und Anmeldung unter:
http://www.nmmn.com/hausmesse/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI62LYDBHISU1oEKERAi2nAKCe59pOFuAghOmRf5OD/FdavZtgkgCfb8gJ
YktQl4jaMp5uFGkTb2Hj9Fk=
=aZcT
-----END PGP SIGNATURE-----
Re: ActiveMQ as email spool
Posted by Markus Wolf <ma...@nmmn.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi James,
> Use transacted mode - see the section on "Enabling Transacted Consumption"
> http://activemq.apache.org/camel/jms.html
thanks, with transactions it does work great. :)
There is just on other issue with the blocked threads. A redeployment -
restart of our servicemix does also block until all threads are done.
Is there a way around this? Like rollback the exceptions in any way?
Thanks
Markus Wolf
- --
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852 HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82
http://www.nmmn.com Tel.: +49 40 284 118 -0
Langbehnstrasse 6 Entwicklung: -720
22761 Hamburg Fax: -999
Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software
+++ Hausmesse am 14.11.2008 von 10:00 bis 16:00 Uhr +++
Überzeugen Sie sich auf unserer Hausmesse von unseren Produkten und
Dienstleistungen! Weitere Informationen und Anmeldung unter:
http://www.nmmn.com/hausmesse/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI63G0DBHISU1oEKERArzIAJ0U4XpgIhB5/T5qHMVK4tUqozPHjwCdGNj3
6AAMG9+ajhKvoaQpj6kCCD0=
=TH8v
-----END PGP SIGNATURE-----
Re: ActiveMQ as email spool
Posted by James Strachan <ja...@gmail.com>.
2008/10/7 Markus Wolf <ma...@nmmn.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> we try to setup an email spool using activemq.
> But we are struggeling with a guaranteed delivery. We have a queue for
> email send requests which is configured with a camel route and a
> try-catch block where the emails are put into another queue if an
> exception occured.
> The error queue should try a second attempt after 15 minutes, also as
> camel route. We tried to use a delayer for this, but in case of broker
> shutdown this messages are lost, because the message is already removed
> from the queue.
>
> Is there a way around this problem? We already tried to use
> CLIENT_ACKNOWLEDGE but it does not seem to work either.
> I've also read the thread james had with a developer from james. They
> tried the same, but I'm not sure if they succeed.
Use transacted mode - see the section on "Enabling Transacted Consumption"
http://activemq.apache.org/camel/jms.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com