I am new to Java webservices and trying to write a service which used Http basic auth for authentication with JBoss 6.3 server.
I have used Jersey for this and create a simple service which works well when used with Advance Rest client in chrome.
But when I directly hit the URL in the browser it doesn't show the dialog for username and password. I am not sure what to do so that even with browser the dialog box is shown and user enters the username and password.
Please suggest and code sample that I can run and see what I am missing.