Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Camel equivalent in Rails

Is there an equivalent to Apache Camel in Rails ?!

I'm creating an application that needs to "listen" to messages from one source (for example: email (POP3)) and sends them to another source (for example: logfile or email (using smtp)).

Any ideas ?

like image 254
refaelos Avatar asked Feb 21 '26 13:02

refaelos


2 Answers

I am not sure about a complete equivalent to Apache Camel. But, to just listen for mails from a POP3 server and send to another source, try the mailman gem

EDIT: You should also look at mailcatcher gem

like image 138
dexter Avatar answered Feb 27 '26 09:02

dexter


I am pretty sure there are no ports of Apache Camel to other languages, including ruby (but others as well, there was a question about .net recently). However, you can use Apache Camel with your application. You can treat Camel as an independent daemon that you need to configure and you can do that conveniently via xml. If you need some of your ruby code to be invoked during processing you can use the Camel org.jruby:jruby support. It may be less than ideal, but it works well. To interact with external systems Camel supports a large number of protocols already (including the ones you mentioned), but one could plug in her own.

Given Camel's support for many languages, protocols and data formats, I doubt anybody will go through the significant effort of porting it to other languages, but you never know.

like image 20
hadrian Avatar answered Feb 27 '26 09:02

hadrian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!