Posts

How to install springsource tool suite on linux

Download the STS self-extracting shell script (*.sh) that matches your OS and machine architecture from the following Url: http://www.springsource.org/eclipse-downloads Please make sure to download and install STS versions that match your JDK installation. Once downloaded, launch the installation by running the following command in a terminal session: $ sh springsource-tool-suite-2.9.0.RELEASE-e3.7.2-linux-gtk-installer.sh Follow the on-screen instructions to finish the installation. See “Running the STS Installer”.

How to find MYSQl Port No and Version ?

mysql> show variables like 'port'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | port | 3306 | +---------------+-------+ 1 row in set (0.02 sec) mysql> show variables like 'version'; +---------------+-------------------+ | Variable_name | Value | +---------------+-------------------+ | version | 5.0.45-community-nt | +---------------+-------------------+ 1 row in set (0.00 sec)

Java JVM Shutdown Hook - tutorial

JVM shutdown hooks provide a clean and simple mechanism for registering application-specific behavior that performs the required cleanup work when a JVM terminates. It is a Java feature that let you have a piece of Java code run whenever the JVM terminates under one of the following conditions:   - The program exits normally, such as when the last non-daemon thread exits or when the                         Runtime.exit() method is invoked.   -  The virtual machine is terminated in response to a user interrupt, such as typing CTRL-C, or a                      system-wide event, such as user logoff or system shutdown (for example, the JVM receives               one of  the interrupt signals SIGHUP (Unix Only), SIGINT, or SIGTERM). A shutdow...