Sorry, I did not want to affront you. A big sorry for that!

I know it is difficult to handle large attachments without caching it in files.

With caching attachments in files, there can(!) be some problems with security 
configurations on some applicationservers. It can be forbidden for 
webapplications to write any files to harddisc. This could run in problems, if 
some people want to use axis2 in high security environments, this could be a 
problem. A direct streaming of the attachments to the Service Implementation 
would be solve the problem... After taking a look to SAAJ I'm nearly sure, that 
a direct streaming is imposible with this API.

Regards!
Jochen


> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> Gesendet: 23.05.07 10:15:30
> An: [email protected]
> Betreff: Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"


> 
> On 5/23/07, Jochen Zink <[EMAIL PROTECTED]> wrote:
> >
> > This is the only way to handle large attachments int axis2, *sadly*.
> Feel free to contribute or implement if you have ideas for better
> mechanisms for handling large attachments... There was an earlier
> effort to port the attachment streaming mechanisms from Axis1.. But it
> was never completed..
> 
> Thanks,
> Thilina
> 
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [email protected]
> > > Gesendet: 23.05.07 07:23:12
> > > An: "axis user" <[email protected]>
> > > Betreff: MTOM error "java.lang.OutOfMemoryError: Java heap space"
> >
> >
> > > Hi friends,
> > >
> > >
> > >
> > >     I am running sample application "mtom" from standard axis2 samples 
> > > [axis2-1.1.1\samples\mtom]. This sample is working for sending attachment 
> > > of size 2-3 MB, but giving error for more than 3MB size of files.
> > >
> > >
> > >
> > > I want to send file of size 50-100 MB.
> > >
> > >
> > >
> > > error is as follows
> > >
> > >      [java] Exception in thread "main" org.apache.axis2.AxisFault: 
> > > java.lang.Out
> > > OfMemoryError: Java heap space
> > >      [java]     at 
> > > org.apache.axis2.description.OutInAxisOperationClient.send(Ou
> > > tInAxisOperation.java:271)
> > >      [java]     at 
> > > org.apache.axis2.description.OutInAxisOperationClient.execute
> > > (OutInAxisOperation.java:202)
> > >      [java]     at sample.mtom.service.MTOMSampleStub.attachment(Unknown 
> > > Source)
> > >
> > >
> > >
> > >      [java]     at sample.mtom.client.Client.transferFile(Unknown Source)
> > >      [java]     at sample.mtom.client.Client.main(Unknown Source)
> > >      [java] Java Result: 1
> > >
> > >
> > >
> > > I have enabled "MTOM" & "filecaching" both in the client side, but not 
> > > server side caching means in "axis2.xml".
> > >
> > > 1) Can some one figureout solution?
> > >
> > > 2) Can we send file as attachment of size 50MB - 1GB?
> > >
> > >
> > >
> > > With best regards
> > >
> > > From
> > > Vikas R. Khengare
> > >
> >
> >
> > _______________________________________________________________
> > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> >
> >
> > ---------------------------------------------------------------------
> > 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]
> 
> 


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to