Guillaume,

I am wondering why camel isn't using attachments in
their messages. There are several cases when they would
normally need this feature. (polling per ftp, email etc..)

For the marshaller logic:
Yes, I have done it like this. It is almost the same logic used in
the lightweight email component. I think this will fit our needs.
Now the question is how to best implement this templating logic for
sending emails.
Another question is if it is really necessary to have the spring mail sending
ability in this component. What is the advantage to normal JavaMail sending?
Any other ideas to improve the component are very welcome.

Regards,
Lars




Guillaume Nodet schrieb:
Yeah, true, this may not be the best option then.
Anyway, do you plan to use some kind of marshalers as in the components, http
or jms components so that the conversion mail<->jbi can be changed by the user
when needed ?

On Wed, Feb 27, 2008 at 8:37 AM, Lars Heinemann
<[EMAIL PROTECTED]> wrote:
Guillaume,

 unfortunately the Camel message structure does not support any kind of
 attachment and therefore it's useless for this case. The alternative
 would be
 to add attachment support to Camel messages.

 Regards,
 Lars




 Guillaume Nodet schrieb:


Great, we've needed that for a long time now :-)
 > AFAIK, the spring mail support uses the Javamail api.  Is there anything that
 > the endpoint based on spring could not do wrt to the other one ?
 >
 > Also wrt to velocity and other templating frameworks, it might we worth
 > having a look at camel.  I would even consider using camel mail support
 > (http://activemq.apache.org/camel/mail.html) directly, because camel already
 > support templating: http://cwiki.apache.org/CAMEL/templating.html
 >
 > Given that camel supports JBI, we could consider mail endpoints using a camel
 > route:
 >    from("jbi:xxx").
 >       to("velocity:com/acme/MyResponse.vm").
 >       to("smtp://host:port/")
 >
 > Just some thoughts....
 >
 > On Tue, Feb 26, 2008 at 10:04 PM, lhe77 <[EMAIL PROTECTED]> wrote:
 >
 >>  Hi,
 >>
 >>  actually I am developing a JBI compliant binding component for polling and
 >>  sending emails.
 >>  I will start here a discussion to put together all ideas and requirements
 >>  for this BC. So any
 >>  suggestion is welcome.
 >>
 >>  State:
 >>  - The BC uses the JavaMail API to poll and send emails. (2 endpoints for
 >>  now)
 >>
 >>  ToDo:
 >>  - Sending mails via spring mail. (via another endpoint)
 >>  - integrate frameworks like Velocity for email template handling
 >>
 >>  Regards,
 >>  Lars
 >>
 >>  --
 >>  View this message in context: 
http://www.nabble.com/new-JBI-componten%3A-EMail-BC---Discussion-thread--tp15699972s12049p15699972.html
 >>  Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
 >>
 >>
 >>
 >
 >
 >
 >




Reply via email to