I'd like to see in advance if my credentials are correct for the queues in a server. Is there a method like boolean checkCredentials(String user, String password, Queue queue) for a queue? The last param could be ClientQueue or any other HornetQ core queue representation. Wouldn't it be faster than trying to connect to the queue?
Im not sure what you mean in advance of, the credentials are checked when you create the connection.
Yes, they are checked at connection time. Isn't there any overhead that could be avoided? I haven't looked over the implementation, if the security check is the first thing done, then my question is pointless.
Isn't there any overhead that could be avoided?
no matter how you check there is an overhead, and yes the check is done on createconnection(....)