All Examples 

package examples.intro

about this package

The examples in this directory accompany the document Introduction to BEA WebLogic Server. The examples include the following:

HTTP Servlet
SqlServlet.java

A servlet that executes SQL statements using a JDBC connection pool.

JSP (JavaServer Pages)
Calendar.jsp
CalendarBean.java

A JSP page that displays a monthly calendar by calling a JavaBean that returns the current month in HTML format.

JDBC connection pools
booksPool.java

A Java client that demonstrates accessing a JDBC connection pool in WebLogic Server. The client creates a table, inserts some data, and then retrieves and displays the data.

Enterprise JavaBeans
Emp.java
DmpBean.java
EmpBeanHome.java
EmpBeanPK.java
ejb-jar.xml
weblogic-ejb-jar.xml
weblogic-cmp-rdbms-jar.xml
EmpQuery.jsp

An example of an entity EJB that uses the Emp table in the Cloudscape demo database. The EmpQuery JSP page demonstrates how the EJB can be used in an application.

JMS (Java Message Service)
EmpTrans.java
EmpQueueReader.java

A simplified workflow example that combines JMS, EJB, and a Servlet, using the Emp Enterprise JavaBean. Transactions collected by the EmpTrans Servlet are sent as messages to a JMS Queue. The EmpQueueReader Java client reads accumulated messages from the Quque and asks you to confirm each transaction.

how to use the examples

Instructions for building and executing the examples can be found in Chapter 2 of Introduction to BEA WebLogic Server. If you use Windows NT, you can run the build.cmd build script to compile the examples. Be sure to follow the instructions in Setting your development environment before you run the script.

there's more . . .

Read Introduction to BEA WebLogic Server for an introduction to WebLogic Server architecture, development APIs and administration. Chapter 2 provides a tour of the important WebLogic Server features and explains how these examples work.