This tutorial might be useful to you.The NetBeans E-commerce Tutorial - Connecting the Application to the Database