Stefan,
Like the error message says: you can not use SMTP to poll a mail server,
that protocol is used for sending mails. You should have an endpoint
with pop:// or imap:// in the from() of your RouteBuilder. If you look
at the examples on the Camel component page I mentioned, you'll notice
that the examples always use one of those protocols in the from()
clauses as well.
Regards,
Gert
stlecho wrote:
Gert,
The RouteBuilder I'm using contains the following:
"from("smtp://[EMAIL PROTECTED]").to("smtp://[EMAIL PROTECTED]")".
When launching the main method in Eclipse, I'm receiving "Protocol smtp can
not be used for a MailConsumer. Please use another protocol such as pop3 or
imap.". According to the camel documentation page, smtp should be supported.
Is this an issue with ServiceMix ?
When deploying the SU, I'm receiving "No endpoint could be found for:
smtp://[EMAIL PROTECTED]". It seems strange to me that the mailbox should
be specified as an endpoint. How and why should I define this endpoint ?
Regards, Stefan.
Gert Vanthienen wrote:
Stefan,
No need to build it yourself -- we have snapshots available at
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/servicemix-mail/4.0-SNAPSHOT/.
Not sure about it, but you might have to pick up the 4.0-SNAPSHOT
version of shared library from that repository as well.
If you choose to use camel-mail inside ServiceMix, I would recommend you
to read through the ServiceMix & Camel tutorial at
http://servicemix.apache.org/3-beginner-using-apache-camel-inside-servicemix.html
to learn about how the two projects work together. For configuring the
mail poller in Camel, all you need to know is the correct URI syntax and
that is being described at http://activemq.apache.org/camel/mail.html.
The examples there send the mail message to a log/jms queue, but you can
do anything in Camel with it -- just transform them into XML and send
them to a JBI endpoint to integrate with any other ServiceMix service
endpoint.
Regards,
Gert
stlecho wrote:
Lars,
I'm relatively new to building ServiceMix components. Could you provide
me
some more details about "Just build servicemix-mail" ?
Regards, Stefan.
lhe77 wrote:
Just build servicemix-mail for yourself and use it.
Regards
Lars
Am Montag 25 August 2008 15:11:08 schrieb stlecho:
Gert,
I would like to poll a mailserver and - based on the content of the
message
- send the attachements of the mail to a queue. Would it be possible to
provide an example on how to configure this scenario with ServiceMix
and
Camel ?
Regards, Stefan.
Gert Vanthienen wrote:
Stefan,
There's no release date on ServiceMix 3.3 yet. You can use the
4.0-SNAPSHOT components that are available from the Apache snapshot
repository at http://people.apache.org/repo/m2-snapshot-repository/ in
ServiceMix 3.2.x, but only if you replace all components with the
4.0-SNAPSHOT versions (the shared library was changed). You can also
find a full 3.3-SNAPSHOT in the same repository, which might be more
convenient for you.
If you want to send mails and still stick to the released version (the
latest one is 3.2.2), you can use Camel's camel-mail component inside
ServiceMix (cfr. http://activemq.apache.org/camel/mail.html). I would
recommend you to upgrade to 3.2.2 because that comes with Camel 1.4.0
inside the component.
Regards,
Gert
stlecho wrote:
Hi,
On the servicemix-mail documentation page, I read the following:
"Note
that
this component is only available in releases >= 3.3.". But I can not
find any reference to v3.3 on the Download page.
When will v3.3 be available ?
Is there a way to use servicemix-mail with v3.2.1 ?
How can I get the same functionality - i.e. sending mails - for
v3.2.1
?
Regards, Stefan Lecho.
-----
---
Gert Vanthienen
http://www.anova.be
-----
---
Gert Vanthienen
http://www.anova.be