Monday, January 28, 2013

Tomcat as Windows service


 service.bat install <service_name>

Tuesday, January 22, 2013

XML submit


HttpPost httppost = new HttpPost(SERVICE_EPR);          
StringEntity se = new StringEntity(SOAPRequestXML,HTTP.UTF_8);

se.setContentType("text/xml");  
httppost.setHeader("Content-Type","application/soap+xml;charset=UTF-8");
httppost.setEntity(se);  

HttpClient httpclient = new DefaultHttpClient();
BasicHttpResponse httpResponse = 
    (BasicHttpResponse) httpclient.execute(httppost);

response.put("HTTPStatus",httpResponse.getStatusLine().toString());

Monday, January 07, 2013

Generate CSR File glassfish /Java


keytool -keysize XXXXX -genkey -alias XXXXXX -keyalg XXX  -keystore keystore.jks -keypass XXXXX -storepass XXXXX
keytool -certreq -alias XXXXXX -keystore keystore.jks -storepass XXXX -keypass XXXX -file server.csr