2 Replies Latest reply on Apr 16, 2013 1:08 PM by raylite3

    Null HornetQPrincipal in interceptor

    raylite3 Apprentice



      From my client I create a regular JMS connection using ConnectionFactory.createConnection(String user, String password). In my interceptor, I access the HornetQPrincipal using connection.getTransportConnection().getDefaultHornetQPrincipal() . But I always get a null object back. How can I access the user name I specified for obtaining the connection in the interceptor?


      I am using EAP 6.1 Alpha. I have security enabled - if I don't specify the correct user/password, I get a security exception. But after I am authenticated, I don't seem to be able to determine the username in the interceptor. Any help appreciated.


      Thanks in advance !