Forums Register Login

jdbc connection in main method

+Pie Number of slices to send: Send
is it mandatory to make jdbc connection in main method;i tried to use it in event handling method of a button and it gives no response and no errors
+Pie Number of slices to send: Send
Not at all. You should make a separate Connection class for JDBC. Did your code in event handling method includes any output statement??
+Pie Number of slices to send: Send
You ought not to have a connection in the main method. Use the main method to start the application and nothing else.
What are you doing in my house? Get 'em tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 975 times.
Similar Threads
VAJ Oracle connection problem
id of the new field in my table
Hibernate static SessionFactory
Validating user/password for database connection
JDBC Connection Interface
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:45:24.