You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Punnoose, Roshan" <pu...@bah-systems.com> on 2006/09/12 18:17:17 UTC
Axis2 OMText to File
Hi,
I am trying to take my OMText element and put the contents in a file,
but I keep going OutOfMemory.
Here is the server code:
OMElement data = fac.createOMElement("mtomSample",
omNs);
OMElement file = fac.createOMElement("file", omNs);
FileDataSource fileDataSource = new FileDataSource(
"C:/temp/local_cert.txt");
DataHandler dataHandler = new
DataHandler(fileDataSource);
OMText textData = fac.createOMText(dataHandler, true);
file.addChild(textData);
data.addChild(file);
Client code (this goes out of memory):
OMText binaryNode = (OMText) _imageElement.getFirstOMChild();
FileOutputStream fileOutputStream = new
FileOutputStream("C:/temp/returnFile.txt");
binaryNode.serialize(fileOutputStream);
Any ideas?
Roshan Punnoose
Phone: 301-497-6039
-----Original Message-----
From: robert lazarski [mailto:robertlazarski@gmail.com]
Sent: Tuesday, September 12, 2006 10:47 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] eager service initialization
Its part of the nightlies under the Service.startUp() interface ...
just have your service implement it .
Robert
On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Hi all,
>
> some time ago somebody raised an issue about eager service
> initialization (i.e. at system startup). Is there any news about it?
>
> Thanks,
> Michele
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org