All Examples All WebLogic Enterprise Connectivity Examples
This example demonstrates how to use WebLogic Enterprise Connectivity to access a WebLogic Enterprise CORBA object from a servlet on WebLogic Server. The example uses WebLogic JSP and the WebLogic JSPServlet.
The remaining steps are performed at run time.
Install and set up WebLogic Server, JDK, and WebLogic Enterprise. See Platform Support for WebLogic Enterprise Connectivity for information about the supported versions for each of these products.
See the University Transactions Sample Application in the WebLogic Enterprise documentation. If you are viewing this document on the Web, see the WebLogic Enterprise documentation on the Web. If you are viewing this document from the documentation CD, see the WebLogic Enterprise documentation on the CD. To get to the University Transactions Sample Application, click CORBA Topics, scroll down and click Sample Applications, then click Transaction Sample under Overview of University Sample Applications.
The build procedure for the Java version of the example generates the client stubs and puts them in your working directory. Client stubs provide the programming interface for CORBA object operations.
You can use the C++ version of the example, which uses C++ client stubs instead of Java client stubs. If you use the C++ version, you must run the idltojava compiler on the simple.idl file to generate Java client stubs.
For information about manually generating client stubs, see Creating CORBA Client Applications in the WebLogic Enterprise documentation. If you are viewing this document on the Web, see the WebLogic Enterprise documentation on the Web. If you are viewing this document from the documentation CD, see the WebLogic Enterprise documentation on the CD. To get to Creating CORBA Client Applications, click CORBA Topics, then scroll down and click Creating CORBA Client Applications.
WebLogic Enterprise provides the idltojava compiler. You must run the idltojava compiler on a computer with a C++ development environment, because it runs the C precompiler on the .idl source.
On Windows NT:
COPY univ_dir\transactions\UniversityT\*.class %SERVER_CLASSES%
cp univ_dir/transactions/UniversityT/*.class $SERVER_CLASSES$
where univ_dir is the location of the WebLogic Enterprise University sample.
On Windows NT:
javac -d %SERVLET_CLASSES% *.java
javac -d $SERVLET_CLASSES$ *.java
You can uncomment and edit the weblogic.CORBA.connectionPool.Univpool property in the weblogic.properties file. See the Administrators Guide Setting up WebLogic Enterprise Connectivity.
Add this .jar file to the JAVACLASSPATH environment variable in the startWebLogic.cmd file (NT) or the startWebLogic.sh file (UNIX).
Copyright © 2000 BEA Systems, Inc. All rights reserved.
Last updated 3/8/00