|  Sample Applications, Code Examples, and Test Domain

Getting Started  | Samples |  Fast Track |  Documentation |  dev2dev

Controls: Start the Administration Console  Shut Down Server  

Try These WebLogic Server Features

New EJB 3.0 Persistence

These examples show how EJB 3.0 persistence can be used with Java Persistence Architecture (JPA), session EJBs, and asynchronous JavaScript-based Web applications.

Run the example   |  Instructions


HTTP Pub/Sub Server

This example demonstrates the usage of the Weblogic HTTP Pub/Sub Server utilizing the Dojo Toolkits which provides the support of Bayeux protocol.

Run the example   |   Instructions


Java Web Service Metadata Annotations

This example shows how to create a simple WebLogic Web Service using Java Web Service (JWS) metadata annotations. Metadata annotations are a new JDK 5.0 feature, and the set of annotations used to annotate Web Service files are called JWS annotations. WebLogic Web Services use standard JWS annotations, as defined by the Web Services Metadata for the Java Platform 2.0 specification, as well as WebLogic-specific ones for added value.

Run the example Instructions


XML: Data Binding Using XML Beans

This example illustrates how to use XML Beans to bind data between XML and Java representations of the data. The example uses the patientSchema.xsd XML schema file as its starting point.

Run the example  |  Instructions


EJB 2.1: Basic, Bean-Managed Enterprise JavaBean

This example demonstrates how to use an Entity EJB 2.1 to access data using bean-managed persistence.

Run the example  |   Instructions


JSP: Simple Tags

Simple tags are a new JSP 2.0 feature that use a much simpler invocation protocol than do classic tag handlers. Also, simple tag extensions do not rely directly on any servlet APIs, which allows for potential future integration with other technologies.

Run the example  |   Instructions


Servlet: Weblogic Extended annotations

This example demonstrates how to use Weblogic extended Servlet annotations @WLFilter, @WLFilter and @WLInitParam to configure Servlet and Servlet Filter. By using these annotation, one avoids the need to configure Servlet and Server Filter in the web.xml deployment descriptor file..

Run the example  |   Instructions


Servlet: AbstractAsyncServlet

The implementations of AbstractAsyncServlet can prevent hung threads by decoupling response from incoming request and timing out unresponsive requests.

Run the example  |   Instructions


Database Connectivity: JDBC Rowsets

A Java RowSet is an extension of a Java ResultSet. Using a rowset to hold the data rather than a result set minimizes the number of database round trips required to filter and sort the data, and improves application performance. This example demonstrates how to use cached, filtered, and sorted rowsets.

Run the example  |   Instructions


WebLogic Scripting Tool (WLST)

The WebLogic Scripting Tool (WLST) is a command-line scripting interface that you use to automate WebLogic Server configurations and deploy applications. These sample scripts demonstrate how to use WLST to configure and manage WebLogic Server instances and domains while connected to a running Administration Server.

Instructions for running sample scripts

 

 

Sample Applications and Code Examples

Test Domain

Use the default domain (called wl_server) to try out your own applications!

You can use the WebLogic Server instance you are running right now to try out your JSPs, servlet or other Java Platform, Enterprise Edition (Java EE) Applications. See the Fast Track Deployment and Administrator Guide.

Additional Examples

If you select the option to install samples when you install WebLogic Server, you can also access the following examples:

  • API examples
    WebLogic Server API examples demonstrate Java EE and WebLogic Server features. Each example comes with source code, instructions for building and running the examples, and ant scripts to automate the build process.
  • Avitek Medical Records sample application
    This application showcases the use of each Java EE component and illustrates best practice design patterns for component interaction and client development. Avitek Medical Records also illustrates best practices for developing and deploying applications with WebLogic Server. Complete source code and documentation is available for this application.

dev2dev Web Site

  • dev2dev.bea.com
    Visit dev2dev to find articles about WebLogic Server programming, additional code examples, and much more.

  Copyright 2008, Oracle.