On Dec 7, 2008, at 4:12 PM, prhlava wrote:

>
>
>> You're asking for the pipe to be repeatedly opened, one  
>> uninterrupted glob of bytes read and processed and then the pipe  
>> closed. Is that really what you intend?
>
> Yes, that was my intention, maybe a rethink is in order...
>
>> As written, this suggest a kind of "daemon" that monitors the pipe,
>> waiting for successive writers, each of which must write everything
>> they want processed by the far side in a single write call and
>> furthermore that transmission must not exceed the operating system's
>> pipe high-water mark. All this seems a bit fragile to me.
>>
>> But more practically, you should _say_ what you want your code to
>> accomplish.
>
> Store e-mail messages in a database (I am porting a program that
> already does this, as an exercise) + making it work through pipe (as
> java start-up is longish) => therefore I will have submitter and
> "daemon" receiver...

Why not just stream it into a JDBC Blob to your database?   Is there  
some reason the mail to be stored needs to be read remotely to the  
machine storing messages to the database BTW?

- samantha


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to