PDA

View Full Version : Working with streams


groker
08-10-2006, 02:55
Hi,



I need to implement a java service, reading from stream a data chunk by chunk, processing it and writing to an output stream.
I faced the problem, that when writing in loop chunks of data to output variable they are not being passed to the next component in the flow, as I would like it, until my service returns.


At this point I started to think of using 2 services, reader and writer, while saving my processing unit somewhere in Repository(since I need to access it across sessions),
but this doesn’t seem to be very simple solution.

Is there a standard way to work with streams in webMethods?

Thank you!

castropb
08-11-2006, 08:41
Sounds like within the loop, you're simply adding the chunk of data to the pipeline, but what you want to do is to invoke a service.

groker
08-15-2006, 08:14
Thanks! Seems to be simplest solution.