Ian, do you mean something like this? Sorry, I don't know any Spring...

        <cxf:bus>
                <cxf:features>
                        <bean 
class="info.cathdb.funcnet_0_1.impl.HttpClientConfigFeature" />
                </cxf:features>
        </cxf:bus>

And then:

public class HttpClientConfigFeature extends AbstractFeature
{
    HTTPClientPolicy myConfig;
    public void initialize( Client client, Bus bus )
    {
        myConfig = new HTTPClientPolicy();
        myConfig.setReceiveTimeout( 0 );
        myConfig.setConnectionTimeout( 0 );

        Conduit conduit = client.getConduit();
        if( conduit instanceof HTTPConduit && myConfig != null )
        {
            HTTPConduit httpConduit = ( HTTPConduit ) conduit;
            httpConduit.setClient( myConfig );
        }
        super.initialize( client, bus );
    }
}

That compiles fine but still times out in 1min.

I don't know if it's not working because I haven't configured
something right, or if it's just not possible to add it to the bus
like that...

Andrew.

2008/10/30 Ian Roberts <[EMAIL PROTECTED]>:
> Andrew Clegg wrote:
>> Hi Willem,
>>
>> Thanks for confirmation, I'll do a little example case and raise a
>> JIRA when I get a chance.
>>
>> Regarding this workaround, is there a way to make this work for *all*
>> conduits, like the <http-conf:conduit name="*.http-conduit"> approach,
>> or do I have to configure it separately for every endpoint?
>
> Try adding the feature to the bus instead of the client?
>
> Ian
>
> --
> Ian Roberts               | Department of Computer Science
> [EMAIL PROTECTED]  | University of Sheffield, UK
>

Reply via email to