You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by inter <ga...@126.com> on 2009/09/18 04:58:58 UTC

How to Config jetty thread-pool for servicemix-cxf-bc?

I can add jetty threadpool configuration for my cxf bc consumer,
by adding busCfg="jettyThreadPool.xml" attribute for my cxf bc consumer
endpoint configuration,just like this:


My  question is:

If i have  many  cxf bc consumer endpoints  on port 8092,  should i config
every of them in  my sa?

Was this config for  port 8092 or only for  the spcified endpoint?
===========================================================================

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sec="http://cxf.apache.org/configuration/security"
  xmlns:http="http://cxf.apache.org/transports/http/configuration"
  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xsi:schemaLocation="
       http://cxf.apache.org/configuration/security                   
http://cxf.apache.org/schemas/configuration/security.xsd
            http://cxf.apache.org/transports/http/configuration
            http://cxf.apache.org/schemas/configuration/http-conf.xsd
            http://cxf.apache.org/transports/http-jetty/configuration
            http://cxf.apache.org/schemas/configuration/http-jetty.xsd
            http://www.springframework.org/schema/beans
           
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

  <http:destination
name="{http://servicemix.apache.org/samples/wsdl-first}soap.http-destination">
  </http:destination>

  <httpj:engine-factory bus="cxf">
   <httpj:engine port="8092">
       <httpj:threadingParameters minThreads="1" maxThreads="12" />
       <httpj:connector>
           <bean class="org.mortbay.jetty.nio.SelectChannelConnector">
               <property name = "port" value="8092" />
               <property name="threadPool">
                   <bean class="org.mortbay.thread.BoundedThreadPool"/>
               </property>
           </bean>
       </httpj:connector>
   </httpj:engine>
  </httpj:engine-factory> 
-- 
View this message in context: http://www.nabble.com/How-to-Config-jetty-thread-pool-for-servicemix-cxf-bc--tp25502392p25502392.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: How to Config jetty thread-pool for servicemix-cxf-bc?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You can add busCfg for cxf bc component globally, which means your  
jetty configuration for the cxf bc compoment level is available for  
all your cxf bc consumer endpoint.
SMXCOMP-574[1] tracked this issue, you need use the latest release  
FUSE ESB which include this fix

[1]http://issues.apache.org/activemq/browse/SMXCOMP-574

Freeman
On 2009-9-18, at 上午10:58, inter wrote:

>
> I can add jetty threadpool configuration for my cxf bc consumer,
> by adding busCfg="jettyThreadPool.xml" attribute for my cxf bc  
> consumer
> endpoint configuration,just like this:
>
>
> My  question is:
>
> If i have  many  cxf bc consumer endpoints  on port 8092,  should i  
> config
> every of them in  my sa?
>
> Was this config for  port 8092 or only for  the spcified endpoint?
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xmlns:sec="http://cxf.apache.org/configuration/security"
>  xmlns:http="http://cxf.apache.org/transports/http/configuration"
>  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration 
> "
>  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
>  xsi:schemaLocation="
>       http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd
>            http://cxf.apache.org/transports/http/configuration
>            http://cxf.apache.org/schemas/configuration/http-conf.xsd
>            http://cxf.apache.org/transports/http-jetty/configuration
>            http://cxf.apache.org/schemas/configuration/http-jetty.xsd
>            http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
>  <http:destination
> name="{http://servicemix.apache.org/samples/wsdl-first}soap.http- 
> destination">
>  </http:destination>
>
>  <httpj:engine-factory bus="cxf">
>   <httpj:engine port="8092">
>       <httpj:threadingParameters minThreads="1" maxThreads="12" />
>       <httpj:connector>
>           <bean class="org.mortbay.jetty.nio.SelectChannelConnector">
>               <property name = "port" value="8092" />
>               <property name="threadPool">
>                   <bean class="org.mortbay.thread.BoundedThreadPool"/>
>               </property>
>           </bean>
>       </httpj:connector>
>   </httpj:engine>
>  </httpj:engine-factory>
> -- 
> View this message in context: http://www.nabble.com/How-to-Config-jetty-thread-pool-for-servicemix-cxf-bc--tp25502392p25502392.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com