You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pgodot <pg...@temenos.com> on 2006/10/27 17:14:56 UTC

securitySubject is loose between 2 SM in cluster

Hi SM,

I have SM Agent and used a DefaultServiceMixClient in an API to post message
in the bus. In my API application, I set a securitySubject with Subject
contained a Principal and a publicCredential.
In a component  of the SM Agent, when I do a getSecuritySubject, it return
null.

I checked in JMSFlow in doRouting method the subject is here(for the client
side) but in the onMessage (server side) the subject is not here :-(

I tried also to passed my Subject in a property of the NormalizedMessage but
I retrieve only my Principal in my Subject. The PublicCredential has
disapeared...

Does someone achieved this type of scenari ? Any idea?

Thanks,
Phil
-- 
View this message in context: http://www.nabble.com/securitySubject-is-loose-between-2-SM-in-cluster-tf2521231.html#a7032329
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: securitySubject is loose between 2 SM in cluster

Posted by pgodot <pg...@temenos.com>.
Thanks Guillaume,

Best regards and continue your great SM works 
++
Phil

-- 
View this message in context: http://www.nabble.com/securitySubject-is-loose-between-2-SM-in-cluster-tf2521231.html#a7072429
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: securitySubject is loose between 2 SM in cluster

Posted by Guillaume Nodet <gn...@gmail.com>.
See the javadoc for the Subject class.
It is said that credentials are not serialized.

On 10/27/06, pgodot <pg...@temenos.com> wrote:
>
> Hi SM,
>
> I have SM Agent and used a DefaultServiceMixClient in an API to post message
> in the bus. In my API application, I set a securitySubject with Subject
> contained a Principal and a publicCredential.
> In a component  of the SM Agent, when I do a getSecuritySubject, it return
> null.
>
> I checked in JMSFlow in doRouting method the subject is here(for the client
> side) but in the onMessage (server side) the subject is not here :-(
>
> I tried also to passed my Subject in a property of the NormalizedMessage but
> I retrieve only my Principal in my Subject. The PublicCredential has
> disapeared...
>
> Does someone achieved this type of scenari ? Any idea?
>
> Thanks,
> Phil
> --
> View this message in context: http://www.nabble.com/securitySubject-is-loose-between-2-SM-in-cluster-tf2521231.html#a7032329
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet