You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2011/12/12 17:36:53 UTC
Multithread executor and JMS
How would I go about allowing multiple threads to handle requests
coming over SOAP-over-JMS?
Re: Multithread executor and JMS
Posted by Benson Margulies <bi...@gmail.com>.
Gotcha. Thanks.
On Wed, Dec 14, 2011 at 12:46 AM, Freeman Fang <fr...@gmail.com> wrote:
> Hi,
>
> No, I don't think you also need configure cxf executor, if you configure
> executor for the jaxws endpoint, actually all the processing is still on
> the main thread, until
> before the invoke call, a runnable will be put on the give executor
> which will make the invoke on a background thread, but the main thread
> will wait for a response.
> The jms configuration I suggest here enable multiple threads from transport
> level to get message from queue concurrently and then dispatch to upstream
> cxf.
>
> Freeman
>
> On 2011-12-14, at 上午12:05, Benson Margulies wrote:
>
>> On Mon, Dec 12, 2011 at 9:48 PM, Freeman Fang <ff...@fusesource.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> You can add property like
>>> <property name="concurrentConsumers">
>>> <value>5</value>//or whatever you want
>>> </property>
>>> to org.apache.cxf.transport.jms.JMSConfigFeature.
>>
>>
>> Freeman: how is this related to just using an Executor with multiple
>> threads? Do I need both?
>>
>>
>>
>>
>>>
>>> Freeman
>>> On 2011-12-13, at 上午12:36, Benson Margulies wrote:
>>>
>>>> How would I go about allowing multiple threads to handle requests
>>>> coming over SOAP-over-JMS?
>>>
>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Multithread executor and JMS
Posted by Benson Margulies <bi...@gmail.com>.
I don't suppose you have an example of tweaking this when launching
from Java rather than Spring?
On Wed, Dec 14, 2011 at 12:46 AM, Freeman Fang <fr...@gmail.com> wrote:
> Hi,
>
> No, I don't think you also need configure cxf executor, if you configure
> executor for the jaxws endpoint, actually all the processing is still on
> the main thread, until
> before the invoke call, a runnable will be put on the give executor
> which will make the invoke on a background thread, but the main thread
> will wait for a response.
> The jms configuration I suggest here enable multiple threads from transport
> level to get message from queue concurrently and then dispatch to upstream
> cxf.
>
> Freeman
>
> On 2011-12-14, at 上午12:05, Benson Margulies wrote:
>
>> On Mon, Dec 12, 2011 at 9:48 PM, Freeman Fang <ff...@fusesource.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> You can add property like
>>> <property name="concurrentConsumers">
>>> <value>5</value>//or whatever you want
>>> </property>
>>> to org.apache.cxf.transport.jms.JMSConfigFeature.
>>
>>
>> Freeman: how is this related to just using an Executor with multiple
>> threads? Do I need both?
>>
>>
>>
>>
>>>
>>> Freeman
>>> On 2011-12-13, at 上午12:36, Benson Margulies wrote:
>>>
>>>> How would I go about allowing multiple threads to handle requests
>>>> coming over SOAP-over-JMS?
>>>
>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Multithread executor and JMS
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
No, I don't think you also need configure cxf executor, if you
configure executor for the jaxws endpoint, actually all the
processing is still on the main thread, until
before the invoke call, a runnable will be put on the give executor
which will make the invoke on a background thread, but the main thread
will wait for a response.
The jms configuration I suggest here enable multiple threads from
transport level to get message from queue concurrently and then
dispatch to upstream cxf.
Freeman
On 2011-12-14, at 上午12:05, Benson Margulies wrote:
> On Mon, Dec 12, 2011 at 9:48 PM, Freeman Fang <ff...@fusesource.com>
> wrote:
>> Hi,
>>
>> You can add property like
>> <property name="concurrentConsumers">
>> <value>5</value>//or whatever you want
>> </property>
>> to org.apache.cxf.transport.jms.JMSConfigFeature.
>
> Freeman: how is this related to just using an Executor with multiple
> threads? Do I need both?
>
>
>
>
>>
>> Freeman
>> On 2011-12-13, at 上午12:36, Benson Margulies wrote:
>>
>>> How would I go about allowing multiple threads to handle requests
>>> coming over SOAP-over-JMS?
>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Multithread executor and JMS
Posted by Benson Margulies <bi...@gmail.com>.
On Mon, Dec 12, 2011 at 9:48 PM, Freeman Fang <ff...@fusesource.com> wrote:
> Hi,
>
> You can add property like
> <property name="concurrentConsumers">
> <value>5</value>//or whatever you want
> </property>
> to org.apache.cxf.transport.jms.JMSConfigFeature.
Freeman: how is this related to just using an Executor with multiple
threads? Do I need both?
>
> Freeman
> On 2011-12-13, at 上午12:36, Benson Margulies wrote:
>
>> How would I go about allowing multiple threads to handle requests
>> coming over SOAP-over-JMS?
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Multithread executor and JMS
Posted by Freeman Fang <ff...@fusesource.com>.
Hi,
You can add property like
<property name="concurrentConsumers">
<value>5</value>//or whatever you want
</property>
to org.apache.cxf.transport.jms.JMSConfigFeature.
Freeman
On 2011-12-13, at 上午12:36, Benson Margulies wrote:
> How would I go about allowing multiple threads to handle requests
> coming over SOAP-over-JMS?
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com