I have developed a Swing Application to connect to JBoss server(version 3.0.7) using HTTP and JNDI over HTTP. It's working fine with most our customers.
However, one of our customers is using a Proxy Server to perform user authentication when making HTTP connection. Since there is no username/password information gets stored in the HTTP request to JBoss, the end user will get a "Server redirected too many times" exception.
Is there any way to provide the username/password information when making a HTTP request to JBoss?
I guess you could put the user and pass in the HTTP field for simple JAAS authentication at JBoss.
The requestProperty should be "Authorization" and
its value should be Base64 encoded concatination of user and pass (user+ ":" + pass).