Need to figure out how to wire in a custom data handler in Axis2.
You can wire in a custom javax.activation.DataSource[1] implementation.Then you can wrap your custom datasource object from the javax.activation.DataHandler... You just need to implement the DataSource interface accordingly and make it available in the classpath.
motivation of doing this is to handle scenario of sending a large attachment which there is no way to fit into memory and need to be persisted while incrementally read from the input stream.
Axis2 provides the File Caching mechanism to handle the large attachments. When File Caching is enabled and the size of the attachment exceeds the threshold, the data will be directly written to the file from the inputstream without reading the whole attachment to the memory.. Of course the you'll get a FileDataSource object wrapped in a DataHandler as the result..
Thanks, Thilina [1] http://java.sun.com/products/javabeans/glasgow/javadocs/javax/activation/DataSource.html
-- View this message in context: http://www.nabble.com/How-to-wire-in-custom-data-handler-in-Axis2--tf3561334.html#a9946053 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
