I am trying to create a RestEasy client for services host in JBPM server. The service url is always redirecting to a form based login screen which expects j_username and j_password.
I need to login to the service and also have to store the cookies to avoid authentication everytime. Please suggest the best implementation to achieve this.
Now all the service calls ends up in returning the login html page.
I tried some of the solutions posted here, but not works in my scenario.
RESTEasy client framework authentication credentials
RestEasy Client Authentication and HTTP Put with Marshalling