You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Christopher Cheng <ch...@gmail.com> on 2009/02/24 09:28:09 UTC

Re: problem changing endpoint address from https to http

HI Jaroslav
Has this been solved in version 2.0.10 and 2.1.4?

On Tue, Jan 27, 2009 at 1:31 AM, Jaroslav Libak <ja...@seznam.cz> wrote:

> Hello
>
> This simply cannot work, because there is only one conduit object per web
> client. So if you make calls from multiple threads, one thread could
> override
> configuration for another thread. I have another solution, if I don't
> forget I
> can post a patch here tomorrow.
>
> Jaroslav
>
> Christopher Cheng schrieb:
>  > actually the quick fix is to ignore the "useHttps" in here. If the
> value of
> > ENDPOINT_ADDRESS_PROPERTY starts with https, I set the value of useHttps
> to
> > true, false otherwise. It seems to work just fine in my production
> > environment now.
> >
> >     if (useHttps
> >             || configuredConduit.getTlsClientParameters() != null) {
> >
> > TLSClientParameters params = configuredConduit.getTlsClientParameters();
> >
>

Re: problem changing endpoint address from https to http

Posted by Daniel Kulp <dk...@apache.org>.
On Tue February 24 2009 3:28:09 am Christopher Cheng wrote:
> HI Jaroslav
> Has this been solved in version 2.0.10 and 2.1.4?

2.1.4 yes.   2.0.10, no.   There are too many differences in the conduits 
between 2.0.x and 2.1.x to easily backport the changes.


Dan


>
> On Tue, Jan 27, 2009 at 1:31 AM, Jaroslav Libak <ja...@seznam.cz> wrote:
> > Hello
> >
> > This simply cannot work, because there is only one conduit object per web
> > client. So if you make calls from multiple threads, one thread could
> > override
> > configuration for another thread. I have another solution, if I don't
> > forget I
> > can post a patch here tomorrow.
> >
> > Jaroslav
> >
> > Christopher Cheng schrieb:
> >  > actually the quick fix is to ignore the "useHttps" in here. If the
> >
> > value of
> >
> > > ENDPOINT_ADDRESS_PROPERTY starts with https, I set the value of
> > > useHttps
> >
> > to
> >
> > > true, false otherwise. It seems to work just fine in my production
> > > environment now.
> > >
> > >     if (useHttps
> > >
> > >             || configuredConduit.getTlsClientParameters() != null) {
> > >
> > > TLSClientParameters params =
> > > configuredConduit.getTlsClientParameters();

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog