Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354361

Summary: timeout values (read, connect) for the Http(s)URLConnection used by Riena/Hessian should be configurable
Product: [RT] Riena Reporter: Stefan Liebig <Stefan.Liebig>
Component: communicationAssignee: Stefan Liebig <Stefan.Liebig>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.campo, ralf.stuckert
Version: 3.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 299028    

Description Stefan Liebig CLA 2011-08-10 07:27:38 EDT
The timeout values are currently the default values but they should be configurable.
Comment 1 Stefan Liebig CLA 2011-08-10 07:39:06 EDT
For the configuration there will be a new extension point created. 
This extension point would also allow to incorporate a configuration property which is currently only defined by a system property (riena.communication.zip).
I propose to remove the system property and move the configuration to the extension point.

Objections?
Comment 2 Christian Campo CLA 2011-08-10 07:57:58 EDT
That sounds like a good idea. And default (if no extension is specified) will be the current default if no system property is defined right ?
Comment 3 Stefan Liebig CLA 2011-08-10 08:02:42 EDT
The idea is that this system property is completely discarded. 
If the extension is not given or the attribute for "zipping" (it is optional) is not set the default value will be "false", i.e. no zipping.
Comment 4 Ralf Stuckert CLA 2011-08-10 08:35:57 EDT
+1
Comment 5 Stefan Liebig CLA 2011-08-10 08:50:58 EDT
An example configuration will look like this:

<extension
		point="org.eclipse.riena.communication.factory.hessian.configuration">
	<configuration 
			connectTimeout="60000" 
			readTimeout="10000" 
			zipClientRequest="true">
	</configuration>
</extension>
Comment 6 Stefan Liebig CLA 2011-08-10 09:10:19 EDT
done