Hello,

I was looking at re-implementing a framework that I had previously
written to a more SOA-type of system.  I spent most of last week
breaking the existing codebase down into distinct services and
planning new services I'd need (caching, jabber, dbcp, etc.). 
Fortunately for me, I saw the ServiceMix announcement on TSS last
night.  It looks like a great system; very similar to what I was
planning on implementing myself but further along and more standards
compliant.  My one last concern is if it is possible to do binary
payloads/content.

Here is the standard process flow: a request would come in via SOAP or
REST.  The request would be resolved, validated, executed, and then
would be serialized to a specific format based on a request parameter.
 So the request might involve executing a database query then
serializing it out as an Excel spreadsheet or creating a chart via
JFreeChart and then sending it back to the user.  How does this
serialization work with ServiceMix?  Can I have a service that just
generates an array of bytes as the message contents and then my
servlet just grabs the contents and dumps it out to the response?  Or
is there some more elegant way of doing things?

In the previous version of my framework, my message class just
contained an OutputStream that the serialization service could write
out to (I did this so I didn't have to send back 10MB+ objects). 
However, in the end I think the servlet was just passing in a
ByteArrayOutputStream so I was keeping the 10MB+ of data in memory
anyways  :)

Thanks,
Josh Reed

Reply via email to