What I am trying to achieve is to attach a file to my Email SU, the email being initiated by quartz scheduler.
I have a separate process to creating the file, and at the end of the day that file needs to be sent. Since I read earlier the way to accomplish attachment in email is to attach a file to the message, hence I would like the message sent from quartz to Email have that attachment. Also, could anyone let me know how to attach a file to a normalized message? Rgds Subh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lars Heinemann Sent: Friday, June 19, 2009 12:24 AM To: [email protected] Subject: Re: Servicemix-Mail SU needs to send file attachments The question is: "Does that make sense?" Usually you will send files on a demand base or not? And those files will differ each time probably. So why should one add a file to a quartz message. Use the quartz to trigger some other endpoint which contains some logic to choose the right file and which prepares the message for the mail sender. Does that make sense? 2009/6/18 subh <[email protected]> > > Hi, > > Can you let me know how to attach a file to a quartz message? > > I can see the example writing a text, is there a way to even attach a file > using the same config > > <quartz:jobDetail> > <quartz:jobDataAsMap> > <quartz:property key="orderservice-response"> > <![CDATA[ > <hello>world</hello> > ]]> > </quartz:property> > </quartz:jobDataAsMap> > </quartz:jobDetail> > > Rgds > Subh > > > lhein wrote: > > > > Well...you will only need the mail sender then. Just let the quartz > > send a message to your mail sender endpoint. Attach your file to that > > message and set up the correct mail properties as described in the > > component wiki and that's it. > > (http://servicemix.apache.org/servicemix-mail.html) > > > > Regards > > Lars > > > > > > > > > > 2009/5/6 FUSE <[email protected]>: > >> > >> ServiceMix 3.3.1.3 currently running on Windows XP. > >> > >> As new FUSE user, I am trying to determine how to implement a > >> servicemix-mail service unit. I have a servicemix-bean (which is > >> basically > >> Java class that reads requests from a JMS Queue). As each request is > >> generated/processed, I am writing/updating statistics to a local text > >> file. > >> At a specified time, a Quartz-Timer service unit will need to > communicate > >> with a servicemix-mail service for the purpose of attaching that file > and > >> forwarding to a predetermined list of recepients. That's the question. > >> I > >> am looking for a detailed example implementation on how to do this. I > >> have > >> reviewed the xbean.xml for the Maven generated mail service unit and see > >> a > >> mail poller and sender. Will I need just the mail sender? How do I > >> accomplish my goal or is the servicemix-mail service unit not applicable > >> to > >> this scenario (and I should instead use Java mail within the service > bean > >> - > >> which I prefer not to do). > >> Thank you in advance for any help! > >> -- > >> View this message in context: > >> > http://www.nabble.com/Servicemix-Mail-SU-needs-to-send-file-attachments- tp23412766p23412766.html > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > > > -- > > http://lhein.blogspot.com > > > > > > ----- > > Regards > > Lars > > > > > > http://lhein.blogspot.com > > > > > > -- > View this message in context: > http://www.nabble.com/Servicemix-Mail-SU-needs-to-send-file-attachments- tp23412766p24095365.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- http://lhein.blogspot.com ********************************************************************************************************* CONFIDENTIALITY: This email contains privileged and confidential information intended only for use of the intended recipient and is the property of FuelQuest. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient of this email, please immediately reply to sender and delete all copies of this email along with all attachments. NONBINDING NATURE OF TRANSMISSION: Nothing contained in this email message or any attachment hereto constitutes a binding offer, acceptance, agreement or legal commitment on behalf of FuelQuest, unless both (i) specifically so stated, and (ii) evidenced by a hand written signature or genuine photocopy or facsimile thereof executed by an executive officer of FuelQuest having authority to bind FuelQuest. Thank you. *********************************************************************************************************
