API
How to get the Temp Directory Path in Java?
Posted April 1st, 2008 by administrator
The path to the temp directory in Java can be retreived via the sytem property as mentioned below:
System.getProperty("java.io.tmpdir");
Find the Calling Class
Posted March 28th, 2008 by administrator
Here is a simple snippet to find out the calling Java Class.
Class.forName(new Throwable().getStackTrace()[2].getClassName()));
SSL made easier for Testing By Dummy SSL
Posted December 7th, 2007 by administrator
Introduction
JDK 1.4.2 and above JSSE allows to plugin the implementation of the ssl security provider.
Sometimes its difficult to get the ssl/jsse working correctly due to a number of reasons.
Specially in testing applications, where the url's are accessible via ssl , parts or all of the the ssl implementation/provider can be swapped sith a custom
if the server certificate is a self signed cert, not valid or not a trusted cert.
Clash of the Technology Titans - A Recap
Posted December 5th, 2007 by administrator
Introduction
Interestingly enough this power clash has been going on for more than a year now. Even though nothing concrete has come up from it. Even with the latest news about Yahoo and Ebay working together in Japan does not change a thing. EBay withdrew from Japan in 2002 after only two years of operation.Could not compete with well established site Yahoo Japan and Rakuten.
Clean up Rail Sessions
Posted November 27th, 2007 by administrator
By default rails does not clear out stale sessions from the session store. Depending on the configuration session can be stored in the local file system or the database.