This example is more fully described in
Tip 81: Java In The Database - Getting Started With Sybase Adaptive Server Anywhere Version 6
.