I am using Swing client and
JBoss server. I want to reset password and then restart the client.
After password reset if I use System.exit() and restart the client manually(double click on exe.)application works with new credentials. I get desired information from server.
But when I reset password and then open the login window programatically(that is in code after resetting password without using System.exit()) I am not able to get access of server. Client still uses old credentials which are invalid and so resulting in server error saying - User Invalid.
I just want that after password reset user should get Login page automatically without double click on exe.