Hi,

My comment inline

On Tue, May 18, 2010 at 4:51 AM, Dissa
<[email protected]>wrote:

>
> First of all, thank you for your prompt reply.
>
> After using synchronous="false" in cxf bc consumer endpoint, looks like  it
> is working fine (client got the time out if the request taking too long,
> but
> still the server is not frozen after 32 concurrent threads).
>
> Then I wanted to understand this property, but couldn't find it in the list
> of cxf bc consumer endpoint attributes
> (http://servicemix.apache.org/servicemix-cxf-bc.html) Is there any other
> new
> documentation that I should look for ? I just wanted to understand the
>

I'm going to update the document to ensure it up2date.

> difference of setting that to false. (Finally after looking inside the
> code,
> found that it's is calling DeliveryChannel.sendSync() or
> DeliveryChannel.send() based on this value, but both methods, java doc says
> that, they supports concurrent invocation for multi-threaded environments.
> I
> am little bit confused here)
>
> Use asyn flag will use DeliveryChannel.send(), which is no-block
invocation,  cxf bc consumer  leverage cxf continuation to do it and
generally this is better perfromance.
And use sync flag will use DeliveryChannel.sendSync(), which need wait for
the response back, as we use threadpool for cxf bc component, so it also
support concurrent invocation but each invocation block one thread until the
response back.

>
> With reference to the other solution you suggested (setting the jetty
> thread
> pool size), before posting my initial question here, I actually tried it
> with no success. Then only I decided to post it again.
>
> This is my cxf bc xbean.xml (when I tried to set the jetty thread pool
> size).
> ========================================================
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
>       xmlns:http="http://cxf.apache.org/transports/http/configuration";
>
> xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
>           xmlns:fraudcontrol="
> http://com.nps.servicemix.services/fraudcontrol/";
>       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.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";>
>
>  <cxfbc:consumer wsdl="classpath:FraudControl.wsdl"
>                      targetService="fraudcontrol:FraudControlService"
>                      targetInterface="fraudcontrol:FraudControl" />
>
>
>  <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>
>
> </beans>
> ============================
>
> You can't put httpj configuration in xbean.xml, you should put it in some
file let's say jettypool.xml, and set busCfg="jettypool.xml" for your cxfbc
consumer endpoint, I believe I showed how to do it in the thread I refer to.

Freeman

>
> But I got the following error with that
> =========================
>
> <stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name
> 'org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory': Cannot
> resolve reference to bean 'cxf' while setting constructor argument; nested
> exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'cxf' is defined
> ======================
>
> Which bean should I name as "cxf" here ?.
>
>
>
> --
> View this message in context:
> http://old.nabble.com/CXF-web-service-load-testing-freeze-the-server-tp28564246p28588713.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to