3-Tier JDBC Using RMI Example Source Codes
This example has 3 major java codes listed below:
- DBC.javacontains the interface to the remote object.
- DBCApplet.java contains the client java
code. This code will try to
access the method defined in the remote object on the server.
- DBCImpl.java contains the Java code
to provide methods to remote client for accessing the database.
- myDatabase.java contains the JDBC
code.
- DBCApplet.html displays the formatted
html code.
Other Useful Sources
- personcreate.sqlcontains a simple SQL to create the
database.
- README explains how to compile the
code, use rmic to generate the stubs and skeletons,
and run this 3-tier JDBC example.
Material
References
This page is maintained by Chao-Wei Ou