2 Replies Latest reply on Nov 15, 2010 4:12 AM by eerokirjavainen

    Exceptions when validating users

    eerokirjavainen

      Hi,

      I'm using HornetQ to receive and send Stomp messages. I am using my own SecurityManager to validate users and every time user validation fails (unauthorized user) I get an error message and stacktrace.

       

      Is there a way to disable printing that stacktrace since simple error message would be enough for me? Why is that stacktrace even printed instead of throwing that out of HornetQ so user could catch the exception?

       

      Regards

      Eero Kirjavainen