Hello Sriram,

Yes, scomp compiles without any OutofMemoryExceptions. However, I had to 
increase the memory to 384mb, -Xmx and -Xms work fine also in case you need to 
increase the memory.


When using wsdl2java I use the following options, it doesn't compile the schema 
at all since it uses the -Edwc option.


        <!-- - - - - - - - - - - - - - - - - - 
          target: wsdl2java                      
         - - - - - - - - - - - - - - - - - -->
    <target name="wsdl2java" description="Create service implementation with 
wsdl2java">
        <mkdir dir="output/${ws.name}"/>
        <java classname="org.apache.axis2.wsdl.WSDL2Java"
                failonerror="true"
                fork="true">
                <classpath refid="axis2.classpath"/>
                <classpath location="etc/axis2log4j"/>
            <arg value="-d"/>       <!-- use xmlbeans -->
            <arg value="xmlbeans"/> 
            <arg value="-ss"/>      <!--generate skeleton -->
                <arg value="-Ewdc"/>    <!-- do not generate xmlbeans classes-->
                <arg value="-xsdconfig"/>
                <arg file="xsd/NStoPkg.xsdconfig"/>
            <arg value="-sd"/>      <!-- generate services.xml -->
            <arg value="-o"/>       <!-- output directory -->
            <arg file="output/${ws.name}"/>
                <arg value="--noBuildXML"/>
            <arg value="-uri"/>
            <arg file="wsdl/${ws.name}.wsdl"/> <!-- wsdl -->
        </java>
        <echo>Service classes generated with WSDL2Java, erasing classes that 
will 
be replaced by xmlbeans classes</echo>
        <delete includeemptydirs="true">
                <fileset dir="output/${ws.name}/src">
                        <include name="**/*"/>
                        <exclude name="**/.svn/**"/>
                        <exclude name="**/*Skeleton.java"/>
                        <exclude name="**/*MessageReceiverInOut.java"/>
                        <exclude name="**/*Fault.java"/>
                </fileset>
                <fileset dir="output/${ws.name}/resources">
                        <include name="schemaorg_apache_xmlbeans/**"/>
                </fileset>
        </delete>
    </target>

This is my xmlbeans task:
        <!-- ================================= 
          target: generate.xbeans              
         ================================= -->
    <target name="generate.xbeans" depends="prepare, check.xbeans" 
description="Generate xmlbeans classes" unless="xbean.uptodate">
                <xmlbean
                        failonerror="true"
                        memoryInitialSize="384m"
                        memoryMaximumSize="384m"
                        destfile="${jar.dir}/${xbean.filename}"
                        javasource="1.4"
                        classpathref="class.path">
                        <fileset refid="wsdl.files"/>
                        <fileset refid="xsd.files"/>
                </xmlbean>
    </target>

On Friday 01 August 2008 05:04:01 am sri ram wrote:
> Hi David,
>                        I just wanted to confirm regarding this.
> Does the scomp compiler doesn't show any Out of Memory Exeptions?
> And Moreover when we use  wsdl2java command we do mention the databinding
> using -d option ,if we mention XMLBeans in that option will it not
> recompile the schema.Or is there a way to eliminate the recompiling of the
> schema .
>
> Would like to know your ideas on this which is of a great help .
> Thanks And Regards
> Sriram P
>
>
>
>
> --- On Fri, 1/8/08, David Ojeda <[EMAIL PROTECTED]> wrote:
> From: David Ojeda <[EMAIL PROTECTED]>
> Subject: Re: XMLBeans ? is there a better approach
> To: [email protected]
> Date: Friday, 1 August, 2008, 3:50 AM
>
> Hello,
> I had a similar problem with XMLBeans, but regarding file generation.
> The XSDs I used were very big (10k classes), so this caused an
> OutOfMemoryException when doing wsdl2java.
> The solution I found was generating the XMLBeans classes in a separate xml
> with
>
> scomp and using wsdl2java with the -Ewdc option.
>
> Maybe this idea will help you.
>
> On Thursday 31 July 2008 04:31:13 am sri ram wrote:
> > Hi all,
> >      Can anyone give me the better approach of databinding that I have
>
> to
>
> > follow for my project.This project  has almost 396 method and can be more
> > in the upcoming releases, which are exposed as webservices. So while
> > using XMLBeans  as databinding it created many .java and xsb files .
> > These
>
> files
>
> > take ,quite a long time to get compiled and sometimes have
> > OutOfMemoryException and we have to set out heap size to get rid of this
> > exception. Once the aar file is deployed into the server and send a SOAP
> > request ,the Axis Servlet takes more time to get initialized which is one
> > of the main performance drawback. So can any one suggest a better
> > databinding to  have better performance  as a whole A databinding which
>
> can
>
> > give 100% schema support,Quick response and Quick initialization of the
> > servlet.
> >
> > Thanks And Regards
> > Sriram P
> >       
> >
> >
> > .
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >       Unlimited freedom, unlimited storage. Get it now, on
> > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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

Reply via email to