3 Replies Latest reply on May 19, 2011 12:06 AM by llwang0455

    cxfbc jetty config problem

    llwang0455

      Hi,

      I have a problem about the jettyConfiguration when using cxf bingding component to proxy webservice.

       

      I used the latest version of fuse fuse 4.3.1,and I config the jetty thread properties for improving the performance of fuse.

      The jettyConfig.xml file is as follows:

       

       

         <http:destination name="PrintServiceHttpPortEBUS0303-01-20110425-0001.http-destination">

         

       

      and in the beans.xml file ,the cxfbc consumer element used the bean id="cxf" as the providedBus's reference.

       

      The problem is when the value of minThreads attribute in threadingParameters greater than 250, it will throw an exception ,said that the minThreads is bigger than the maxThreads of the pool. I want to know where can I set the thread pool size,and what is the default value ?

      Btw, is this a method to improve the performance? or should I config other properties of jetty?

       

      Waiting for your reply!!

       

      Edited by: llwang0455 on May 18, 2011 8:14 AM

        • 1. Re: cxfbc jetty config problem
          ffang

          Hi,

           

          Please check jetty docs for those jetty specific configuration questions.

           

          And for better performance in ESB, as we discussed in another thread, you need configure NMR and JBI component, like put org.apache.servicemix.nmr.cfg and

          org.apache.servicemix.components.cxfbc.cfg in etc folder.

           

          Freeman

          • 2. Re: cxfbc jetty config problem
            llwang0455

            thanks for your answers!

             

            Another question is if the parameters in org.apache.servicemix.components.cxfbc.cfg  file

            are same as in the org.apache.servicemix.nmr.cfg ?

            Is it as follows:

             

            corePoolSize=512

            maximumPoolSize=-1

            queueSize=3000

            allowCoreThreadTimeout=true

            keepAliveTime=60000

             

            Is there any other parameters that can be configed?

            • 3. Re: cxfbc jetty config problem
              llwang0455

              Has anyone encountered this error ?

              Current event not START_ELEMENT in servicemix

               

              I used fuse-4.3.1-01-09.

              Really need your help!