Hi,
I have similar problem to resolve:
Pass username from http simple authentication as a parameter to external
WebService. Username is not part of an authentication in second webservice
so transparent propagation is not an option for me.
I have searched the list and API but found no clue.
I would appreciate any hint.
Thanks in advice,
jan


Michal wrote:
> 
> I have a jsr181-su which hosts a web service. This web service is a pojo
> class that has following setter:
>    public void setContext(ComponentContext context)
>    {
>       this.context = context;
>    }
> WS access is authorized by WS-Security mechanism (usernametoken).
> 
> One of the step within WS operation is to send a message to a JMS
> component. Since I have the context I can create new MessageExchange and
> send it to the bus. However, in order to reach JMS component I need
> securitySubject (required by SecuredBroker).
> 
> How can I get securitySubject in this case? Or maybe there is some better
> way to send a message within a pojo (and having securitySubject to be
> propagated transparently)?
> 
> tx,
> Michal
> 

-- 
View this message in context: 
http://www.nabble.com/Jsr181---how-to-obtain-security-subject-in-pojo-class--tf4142998s12049.html#a13169480
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to