Create a putty like dynamic port forward in Java. Unable to access URL on you network? want to bypass them over a bastion server? A running demo using JSCH and Apache MINA to use port forwarding.
JVM shutdown hook are like finalize methods for your JVM. It does the same job for JVM that finalize method does for the objects of a class.