Tried that, the interceptor chain has not been initiated when the
alternative selector is called.


On Fri, Oct 10, 2014 at 10:33 PM, Daniel Kulp <[email protected]> wrote:

>
> On Oct 9, 2014, at 8:01 PM, Jason Pell <[email protected]> wrote:
>
> > I can't upgrade to 3.x as yet. So I need to figure out a way to do this
> in
> > 2.7.
>
> I THINK you should be able to do a
> PhaseInterceptorChain.getCurrentMessage() within the AlternativeSelector to
> get the message and grab the operation out of there.
>
> Dan
>
>
>
> > On 10/10/2014 4:18 AM, "Daniel Kulp" <[email protected]> wrote:
> >
> >>
> >> On Oct 9, 2014, at 5:41 AM, Jason Pell <[email protected]> wrote:
> >>
> >>> For instance I want to force choosing username password token for one
> >>> method call and then a saml bearer token for all others.
> >>>
> >>> I don't have enough info in the assertor http conduit
> >>
> >> In the AlternativeSelector for CXF 3.0.x, we added the Message as a
> >> parameter.   Thus, you should be able to look at the operation being
> called
> >> and select different alternatives.   That param was added to
> specifically
> >> address this type of use case.  (as well as ability to look in the
> message
> >> to see if things like usernames/passwords are available and maybe
> select a
> >> different alternative if not).
> >>
> >>
> >>
> >> --
> >> Daniel Kulp
> >> [email protected] - http://dankulp.com/blog
> >> Talend Community Coder - http://coders.talend.com
> >>
> >>
>
> --
> Daniel Kulp
> [email protected] - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>

Reply via email to