We use 2 SIMILAR Microsoft ISA Proxy Server 2003 to connect to internet. Each Proxy has different Login style, as below :
Server-1 : nt-domain\\alan Server-2 : alan@
The java documentation describes how to enable NTLM authentication in java. If you have access to source, you can programmatically add system properties as described in "proxy" article, adding something as follows (see also discussion of axis2):
System.setProperty("http.auth.ntlm.domain", mydomain);
If you have no access to source, you can set properties on the command line that launches your java binary, adding something like:
java -DproxyHost=host -DproxyPort=8080 -Dhttp.auth.ntlm.domain=mydomain ...