You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Prasanna.dpm" <ba...@dnb.com> on 2008/06/10 18:52:22 UTC

http-bc timeout

Hi,

I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I need
to access different webservices. As each webservice can respond based on its
processing time to complete the transaction, is there any provision to set
time out specific to each provider end point defined in xbean of http-bc. It
will be really helpful if some one can help me on this.

If no, similar to conf/component.properties in servicemix directory, where
can I set the default time out settings at Jboss for http-bc.

Regards,
Prasanna:working:


-- 
View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17759857.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http-bc timeout

Posted by Sriram83 <ss...@gmail.com>.
Hi Guillaume,

I can see methods: getClientSoTimeout and setClientSoTimeout in the FUSE
ESB's HttpProviderEndpoint.java. 

This seems to be same as what we are talking about. Can this be incorporated
into Servicemix 3.2.2 release? Or should this be submitted  as a patch? -
Please confirm.

Also, I could not find any junit test case for soap-provider. Do you need
one to accept this as a patch?

Regards,
Sriram


gnodet wrote:
> 
> On Mon, Jun 16, 2008 at 1:40 PM, Sriram83 <ss...@gmail.com> wrote:
>>
>> Hi Prasanna,
>>
>> You can try out http:soap-consumer available in the 3.2 release and
>> specify
>> timeout for consumer level.
>>
>> For provider, it is not available in servicemix yet.
>>
>> Bruce/Guillaume, if we provide the patch for provider timeout, will there
>> be
>> time to include in the 3.2.2 release?
> 
> Yeah, sure.  I don't any problems if the patch is backward compatible.
> 
>> Regards,
>> Sriram.
>>
>>
>> Prasanna.dpm wrote:
>>>
>>> Hi,
>>>
>>> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I
>>> need
>>> to access different webservices. As each webservice can respond based on
>>> its processing time to complete the transaction, is there any provision
>>> to
>>> set time out specific to each provider end point defined in xbean of
>>> http-bc. It will be really helpful if some one can help me on this.
>>>
>>> If no, similar to conf/component.properties in servicemix directory,
>>> where
>>> can I set the default time out settings at Jboss for http-bc.
>>>
>>> Regards,
>>> Prasanna:working:
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/http-bc-timeout-tp17759857p17862528.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17863608.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http-bc timeout

Posted by Guillaume Nodet <gn...@gmail.com>.
On Mon, Jun 16, 2008 at 1:40 PM, Sriram83 <ss...@gmail.com> wrote:
>
> Hi Prasanna,
>
> You can try out http:soap-consumer available in the 3.2 release and specify
> timeout for consumer level.
>
> For provider, it is not available in servicemix yet.
>
> Bruce/Guillaume, if we provide the patch for provider timeout, will there be
> time to include in the 3.2.2 release?

Yeah, sure.  I don't any problems if the patch is backward compatible.

> Regards,
> Sriram.
>
>
> Prasanna.dpm wrote:
>>
>> Hi,
>>
>> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I need
>> to access different webservices. As each webservice can respond based on
>> its processing time to complete the transaction, is there any provision to
>> set time out specific to each provider end point defined in xbean of
>> http-bc. It will be really helpful if some one can help me on this.
>>
>> If no, similar to conf/component.properties in servicemix directory, where
>> can I set the default time out settings at Jboss for http-bc.
>>
>> Regards,
>> Prasanna:working:
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17862528.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: http-bc timeout

Posted by Sriram83 <ss...@gmail.com>.
Hi Prasanna,

You can try out http:soap-consumer available in the 3.2 release and specify
timeout for consumer level. 

For provider, it is not available in servicemix yet. 

Bruce/Guillaume, if we provide the patch for provider timeout, will there be
time to include in the 3.2.2 release?

Regards,
Sriram.


Prasanna.dpm wrote:
> 
> Hi,
> 
> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I need
> to access different webservices. As each webservice can respond based on
> its processing time to complete the transaction, is there any provision to
> set time out specific to each provider end point defined in xbean of
> http-bc. It will be really helpful if some one can help me on this.
> 
> If no, similar to conf/component.properties in servicemix directory, where
> can I set the default time out settings at Jboss for http-bc.
> 
> Regards,
> Prasanna:working:
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17862528.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http-bc timeout

Posted by "Prasanna.dpm" <ba...@dnb.com>.
Guillaume, 

What I need is endpoint level, not at component level. Is there some
provision in 3.1-incubating. 

Regards,
Prasanna.



gnodet wrote:
> 
> There are also some timeouts that can be configured on the
> HttpConfiguration mbean through JMX, but these currently apply for the
> whole component, not for a given endpoint.   Would you use such a
> timeout for a provider endpoint or a consumer endpoint ?
> 
> On Thu, Jun 12, 2008 at 9:17 AM, Bruce Snyder <br...@gmail.com>
> wrote:
>> On Tue, Jun 10, 2008 at 10:52 AM, Prasanna.dpm <ba...@dnb.com> wrote:
>>>
>>> Hi,
>>>
>>> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I
>>> need
>>> to access different webservices. As each webservice can respond based on
>>> its
>>> processing time to complete the transaction, is there any provision to
>>> set
>>> time out specific to each provider end point defined in xbean of
>>> http-bc. It
>>> will be really helpful if some one can help me on this.
>>>
>>> If no, similar to conf/component.properties in servicemix directory,
>>> where
>>> can I set the default time out settings at Jboss for http-bc.
>>
>> There is no timeout exposed in the servicemix-http component in
>> ServiceMix 3.1.
>>
>> To achive this, it looks to me like the HttpMethodParams.SO_TIMEOUT
>> property needs to be exposed in the ProviderProcessor. You could patch
>> the class yourself and rebuild the source or we could expose this
>> method in the 3.2 branch and get it added to the 3.2.2 release.
>>
>> Bruce
>> --
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache ActiveMQ - http://activemq.org/
>> Apache Camel - http://activemq.org/camel/
>> Apache ServiceMix - http://servicemix.org/
>> Apache Geronimo - http://geronimo.apache.org/
>>
>> Blog: http://bruceblog.org/
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17861106.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http-bc timeout

Posted by Guillaume Nodet <gn...@gmail.com>.
There are also some timeouts that can be configured on the
HttpConfiguration mbean through JMX, but these currently apply for the
whole component, not for a given endpoint.   Would you use such a
timeout for a provider endpoint or a consumer endpoint ?

On Thu, Jun 12, 2008 at 9:17 AM, Bruce Snyder <br...@gmail.com> wrote:
> On Tue, Jun 10, 2008 at 10:52 AM, Prasanna.dpm <ba...@dnb.com> wrote:
>>
>> Hi,
>>
>> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I need
>> to access different webservices. As each webservice can respond based on its
>> processing time to complete the transaction, is there any provision to set
>> time out specific to each provider end point defined in xbean of http-bc. It
>> will be really helpful if some one can help me on this.
>>
>> If no, similar to conf/component.properties in servicemix directory, where
>> can I set the default time out settings at Jboss for http-bc.
>
> There is no timeout exposed in the servicemix-http component in ServiceMix 3.1.
>
> To achive this, it looks to me like the HttpMethodParams.SO_TIMEOUT
> property needs to be exposed in the ProviderProcessor. You could patch
> the class yourself and rebuild the source or we could expose this
> method in the 3.2 branch and get it added to the 3.2.2 release.
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
>
> Blog: http://bruceblog.org/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: http-bc timeout

Posted by sachin2008 <es...@gmail.com>.
Hi, 
We can change the provider processor timeout  in this way but, what about
Consumer processor.  Is there any  such property in consumer processor also. 
If there is no such property, how can we ensure the cosumerprocessor is not
get timed out before provider?
If consumer gets timed out before provider, http returns error response
after the standard configured timeout(30 sec). So, no use in increasing
provider processor timeout alone. 




bsnyder wrote:
> 
> On Tue, Jun 10, 2008 at 10:52 AM, Prasanna.dpm <ba...@dnb.com> wrote:
>>
>> Hi,
>>
>> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I
>> need
>> to access different webservices. As each webservice can respond based on
>> its
>> processing time to complete the transaction, is there any provision to
>> set
>> time out specific to each provider end point defined in xbean of http-bc.
>> It
>> will be really helpful if some one can help me on this.
>>
>> If no, similar to conf/component.properties in servicemix directory,
>> where
>> can I set the default time out settings at Jboss for http-bc.
> 
> There is no timeout exposed in the servicemix-http component in ServiceMix
> 3.1.
> 
> To achive this, it looks to me like the HttpMethodParams.SO_TIMEOUT
> property needs to be exposed in the ProviderProcessor. You could patch
> the class yourself and rebuild the source or we could expose this
> method in the 3.2 branch and get it added to the 3.2.2 release.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
> 
> Blog: http://bruceblog.org/
> 
> 


-----
Cheers
Praveen Oruganti
"Think before you act and act on what you believe"
-- 
View this message in context: http://www.nabble.com/http-bc-timeout-tp17759857p17800536.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http-bc timeout

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Jun 10, 2008 at 10:52 AM, Prasanna.dpm <ba...@dnb.com> wrote:
>
> Hi,
>
> I am using servicemix 3.1-incubating in jboss-4.0.5. Using http-bc, I need
> to access different webservices. As each webservice can respond based on its
> processing time to complete the transaction, is there any provision to set
> time out specific to each provider end point defined in xbean of http-bc. It
> will be really helpful if some one can help me on this.
>
> If no, similar to conf/component.properties in servicemix directory, where
> can I set the default time out settings at Jboss for http-bc.

There is no timeout exposed in the servicemix-http component in ServiceMix 3.1.

To achive this, it looks to me like the HttpMethodParams.SO_TIMEOUT
property needs to be exposed in the ProviderProcessor. You could patch
the class yourself and rebuild the source or we could expose this
method in the 3.2 branch and get it added to the 3.2.2 release.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/