To enable SSL on JBoss add the following segment to JBOSS_HOME/server/default/deploy/jbossweb-tomcatxx.sar/server.xml as a child of the jboss.web Service element. 1 2 3 4 5 maxThreads="100" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" scheme="https" secure="true" clientAuth="false" keystoreFile="${jboss.server.home.dir}/tmp/wso2wsas/conf/wso2wsas.jks" keystorePass="wso2wsas" sslProtocol = "TLS" /> NOTE: You can use any keystoreFile of your preference instead of the wso2wsas.jks which is shipped with WSO2 [...]
Archive | September 25th, 2008
Sample code for SimpleDateFormat
September 25, 2008
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 import [...]
Sample code for Listing file names in a directory
September 25, 2008
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 public String[] getFileNames(String DirPath) { String directoryName; File directory; String[] files; directory = new File(DirPath); if (directory.isDirectory() == false) { if (directory.exists() == false) { System.out.println("There is no such directory!"); return null; } [...]
What is Shale Web Framework?
September 25, 2008
Apache Shale is a Java Server Faces based Web Application Framework from the Apache software foundation. Shale is talked of as the “heir” Apache struts framework. We all know that struts is the most used Java Web Framework so far. While shale is the successor of Struts, there is a significant departure of architecture from [...]
EJB Webservices in JBoss application server sample code
September 25, 2008
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Employee Service.java ———————- package [...]
How to delete a cookie on server in a J2EE application
September 25, 2008
There is no direct method offered by servlet API to delete a cookie on server side. This is how you can go about doing it. 1) Loop through the cookies in the request object to locate the one that you want to delete. 1 2 3 4 5 for (Cookie cookie: request.getCookies()) { if (USER_COOKIE_NAME.equals(cookie.getName())) [...]






September 25, 2008
0 Comments