3-Tier JDBC Using Java IDL Example Source Codes
This example has 3 major java codes and an IDL file listed below:
- ClientApp.idl contains the Java IDL
statements to define the interface between the client and server.
- Client.java contains the client java
code. it is an applet can be run in the browsers (e.g., Netscape,
MS Internet Explorer, Sun appletviewer, etc.) This code will try to
start an ORB to talk to the server's ORB to access the database.
- DBServer.java contains the Java code
to provide methods to remote client for accessing the database.
It start the server's ORB to listen the Client's request and pass
the result back to the client.
- myDatabase.java contains the JDBC
code using Weblogic JDBC driver.
Other Useful Sources
- personcreate.sqlcontains a simple SQL to create the
database.
- README explains how to compile the IDL
code using idltojava, compile all related java
codes, and run this 3-tier JDBC example.
- The following java codes were generated by idltojava
Material
References
This page is maintained by Chao-Wei Ou