how can we call JDBC code function from another application? so that we don't need to write JDBC code again and again
+1
A:
Just put it in the classpath (if necessary in flavor of a distributed JAR file) and import
it.
This problem is not specifically related to JDBC, but just to Java in general. To reuse code, all you need to do is to have it in classpath and import the appropriate class and call the appropriate method.
BalusC
2010-08-04 17:01:53
i have created class consisting JDBC conection code with one method.when i call that method from another application thenst.executeUpdate() is not valid in NetBeans6.9
PowerVisible_Unvisible
2010-08-06 05:35:33
plz provide me answer
PowerVisible_Unvisible
2010-08-06 05:37:04
Relax. I was in midst of sleeping. As to your problem: you need to provide more details about the error message.
BalusC
2010-08-06 11:10:49