well answer is at
http://developer.java.sun.com/developer/qow/archive/85/index.html
in my case it is.. by just adding these lines in init() of my first servlet..
Properties prop = System.getProperties();
prop.put("http.proxyHost","192.168.0.1");
prop.put("http.proxyPort","8080");
alternatively you can do this
java.util.Properties systemSettings = System.getProperties();
systemSettings.put ("proxySet", "true");
systemSettings.put ("proxyHost", "192.168.0.1"); systemSettings.put ("proxyPort", "8080");
System.setProperties (systemSettings);
replace IP and Port as per your proxy settings.