You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Busch <An...@ilogics.de> on 2005/09/15 14:00:54 UTC
Need advice on post-request
Hi gurus,
I have a problem to solve.
I get a XML-File as http-post into the pipeline.
Generate the pipe with stream-generator and do the processing.
BUT: I need to store the hole XML into the database (CLOB Oracle)
And have no solution.
tryed : use an action and store the Inputstream into CLOB .. Works , but Streamgenerator see no more this Inputstream
I had a look on the stream-generator and belive that the same happens when I read the stream for inserting in database
Do i miss something (rewinding stream)
Any Advice ?
Thanks a million
Andreas Busch
ILOGICS GmbH ∙ Berduxstr. 22 ∙ D-81245 München
Andreas.Busch@ilogics.de
Tel: +49 89 896667-0
Fax: +49 89 896667-29
www.ilogics.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Need advice on post-request
Posted by Andreas Busch <An...@ilogics.de>.
Can work, if I record the saxStream and put it parallel into the pipeline!
I have to research (Havy Framework, need havy time :-))
What is TeeTransformer ?
-- Andreas
-----Original Message-----
From: Joose Vettenranta [mailto:joose@iki.fi]
Sent: Thursday, September 15, 2005 2:25 PM
To: users@cocoon.apache.org
Subject: Re: Need advice on post-request
how about like this:
streamgenerator
YourOwnTransformer <<---
processing...
serialize
and yourowntransformer could be a fork from TeeTransformer where you just
modfiy it to save data to DB instead of the filesystem.
- Joose
Andreas Busch kirjoitti 15.9.2005 kello 15:00:
> Hi gurus,
> I have a problem to solve.
> I get a XML-File as http-post into the pipeline.
> Generate the pipe with stream-generator and do the processing.
>
> BUT: I need to store the hole XML into the database (CLOB Oracle) And
> have no solution.
>
> tryed : use an action and store the Inputstream into CLOB ..
> Works , but Streamgenerator see no more this Inputstream
>
> I had a look on the stream-generator and belive that the same happens
> when I read the stream for inserting in database
>
> Do i miss something (rewinding stream) Any Advice ?
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Need advice on post-request
Posted by Joose Vettenranta <jo...@iki.fi>.
how about like this:
streamgenerator
YourOwnTransformer <<---
processing...
serialize
and yourowntransformer could be a fork from TeeTransformer where you
just modfiy it to save data to DB instead of the filesystem.
- Joose
Andreas Busch kirjoitti 15.9.2005 kello 15:00:
> Hi gurus,
> I have a problem to solve.
> I get a XML-File as http-post into the pipeline.
> Generate the pipe with stream-generator and do the processing.
>
> BUT: I need to store the hole XML into the database (CLOB Oracle)
> And have no solution.
>
> tryed : use an action and store the Inputstream into CLOB ..
> Works , but Streamgenerator see no more this Inputstream
>
> I had a look on the stream-generator and belive that the same
> happens when I read the stream for inserting in database
>
> Do i miss something (rewinding stream)
> Any Advice ?
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org