Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 1st, 2007, 03:23 AM
Registered User
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to connect database

i'm new to java language..
how do i set up JDBC connection globally so the connection can be used from anywhere in the program?
i have used netbeans IDE5.5 and java 1.6.i am making java application to MS Access database
i started by creating a login page.how do i call that connection when ever i need in different forms..please help me with this..

Old December 3rd, 2007, 11:54 PM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

One connection for the complete application its a bad idea. Try using connection pooling instead.
Try to go through the following URLs


- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect SQL Database eapsokha Classic ASP Professional 1 March 10th, 2004 04:18 AM
Connect to remote database sankar Pro VB Databases 0 July 31st, 2003 01:43 AM
can't connect to database asprookie Classic ASP Databases 1 July 22nd, 2003 10:11 AM
Connect Database vikaspalic Classic ASP Databases 3 June 5th, 2003 09:02 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.