Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
jdbc connection in main method
Joined: Oct 15, 2009
Oct 15, 2009 08:40:40
is it mandatory to make
connection in main method;i tried to use it in event handling method of a button and it gives no response and no errors
Joined: Mar 17, 2008
Oct 15, 2009 08:59:22
Not at all. You should make a separate Connection class for JDBC. Did your code in event handling method includes any output statement??
Joined: Oct 13, 2005
Oct 15, 2009 09:54:08
You ought not to have a connection in the main method. Use the main method to start the application and nothing else.
Don't get me started about those stupid
subject: jdbc connection in main method
id of the new field in my table
VAJ Oracle connection problem
JDBC Connection Interface
Validating user/password for database connection
Hibernate static SessionFactory
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013