WebLogic Server 8.1 Examples Index

 
Packages
examples.servlets Illustrates concepts about writing HTTP servlets, using the JavaSoft Java Servlet API.
examples.jconnector.simple Demonstrates the use of an entity Enterprise JavaBean to interact with a J2EE Connector resource adapter.
examples.jdbc.oracle This package contains several stand-alone examples that can be run independently.
examples.jms.messageformat Demonstrates how to use message-driven beans to implement a simple stock-trading scenario in which the stock data is sent as an XML document.
examples.jms.queue Show how to establish a connection to a JMS queue, and send, browse, and receive messages from that queue.
examples.jms.sender Show how to send JMS messages from a JMS servlet.
examples.jms.startup Show how to establish a JMS message consumer from a WebLogic startup class.
examples.jms.topic Show how to establish a connection to a JMS topic, and send and receive messages from that topic.
examples.jndi This package show how to obtain and use a WebLogic naming context.
examples.jta.jmsjdbc Show how to use JTA to perform distributed transactions using the two phase commit protocol across two XA resources: a JMS queue and a Pointbase database.
examples.rmi.hello This package takes the simple "HelloWorld" RMI example that is supplied in the RMI distribution from Sun to illustrate how easy it is to convert your RMI classes to use WebLogic RMI.
examples.security.jaas This package demonstrates use of the Java Authentication and Authorization Service by validating username and password, and then, if valid, executing the stateless session Trader EJB.
examples.security.sslclient These examples demonstrate how to make an outbound SSL connections and two-way SSL connections from a WebLogic Server that is acting as a client to another WebLogic Server or application server.
examples.utils.common  
examples.utils.thirdparty  
examples.webservices.basic.javaclass Create a WebLogic Web service based on a custom Java class backend component.
examples.webservices.basic.statelessSession Create a WebLogic Web service based on a stateless session EJB called HelloWorld that uses only built-in data types as its input parameters and return value.
examples.webservices.client.dynamic_no_wsdl Create a dynamic client application that invokes a non-WebLogic Web service published at the following URL: The Main client application uses the javax.xml.rpc.Call JAX-RPC class to dynamically discover the operations of the Web service, as well as its parameters, and then call it with the appropriate values.
examples.webservices.client.dynamic_wsdl Create a dynamic client application that invokes a non-WebLogic Web service whose WSDL is published at the following URL: The Main client application uses the javax.xml.rpc.Call JAX-RPC class to dynamically discover the operations of the Web service, as well as its parameters, and then call it with the appropriate values.
examples.webservices.client.static_no_out Show how to use the WebLogic-generated JAX-RPC client Stubs to quickly and easily create a static client application that invokes a non-WebLogic Web service.
examples.webservices.complex.statelessSession Create a WebLogic Web service based on a stateless session EJB.
examples.webservices.handler.log Create a WebLogic Web service based on a handler chain and a Java backend component.
examples.webservices.handler.nocomponent Create a WebLogic Web service that consists of just a handler chain with no backend component.
examples.wtc.atmi.convsimp Demonstrates the ability of WebLogic Tuxedo Connector to allow WebLogic Server to interoperate with Tuxedo using conversations.
examples.wtc.atmi.qsample Demonstrates the ability to use WTC to allow Tuxedo or WLS clients to enqueue to the STRING queue in Tuxedo /Q.
examples.wtc.atmi.simpapp Demonstrates the ability of WTC to allow WLS to interoperate with Tuxedo.
examples.wtc.atmi.simpconv Demonstrates the ability of WebLogic Tuxedo Connector to allow Tuxedo to interoperate with a Weblogic Server application using conversations.
examples.wtc.atmi.simpFML32 Demonstrates the ability of WebLogic Tuxedo Connector to allow WebLogic Server to interoperate with Tuxedo using FML32 buffers.
examples.wtc.atmi.simpserv Demonstrates the ability of WTC to allow Tuxedo to interoperate with a WLS application.
examples.wtc.atmi.simpview Demonstrates the ability of WTC to allow WLS to interoperate with Tuxedo using Views.
examples.wtc.corba.simpappcns Demonstrates the ability to use WTC to allow Tuxedo or WLS clients to run CORBA applications using the Corba Name Service.
examples.xml The examples in this package illustrate how to generate and parse XML data using SAX and DOM parsers.
examples.xml.orderParser This example illustrates how to use the WebLogic XML Streaming API to parse an XML document and bind its elements to Java business objects.
examples.xml.sax Demonstrates how to parse an XML document using a SAX parser obtained via JAXP.
examples.cluster.ejb Demonstrates a clustered application with EJBs that exhibits load balancing and failover.
examples.cluster.ejb.account Lists all the account classes and the interfaces used with the examples.cluster.ejb example.
examples.cluster.ejb.teller List all the teller classes and interfaces used with the examples.cluster.ejb example.
examples.cluster.rmi This simple RMI example is generated with the -clusterable flag and is registered as a startup class in the per-cluster properties file, which binds the impl into the cluster-wide, replicated naming tree.
examples.cluster.utils This is a utility class that's used to gather statistics about the cluster and then prepare a report after each example has run.
examples.ejb20.basic.beanManaged EJB.
examples.ejb20.basic.containerManaged EJB written to the EJB 2.0 specification.
examples.ejb20.basic.statefulSession EJB written to the EJB 2.0 specification.
examples.ejb20.basic.statelessSession EJB written to the EJB 2.0 specification.
examples.ejb20.message Enterprise Java Message Bean written to the EJB 2.0 specification.
examples.ejb20.relationships.bands Demonstrates the use of local interfaces; one-to-one, one-to-many, many-to-many relationships; client.jar; automatic primary key generation; and automatic table creation.
examples.ejb20.sequence.userDesignated Demonstrates the automatic primary key generation feature with an user-designated database.
examples.i18n.simple Show various ways of internationalizing an application using simple message catalogs.
examples.iiop.ejb.entity.server.wls Demonstrates connectivity between a c++ client or a Tuxedo client and an entity bean.
examples.iiop.ejb.stateless.rmiclient This directory contains an RMI java client which can be used to call a stateless session bean from WebLogic and then make an outbound call to Tuxedo using underlying WebLogic Tuxedo Connector technology.
examples.iiop.ejb.stateless.server.wls Demonstrates using a variety of clients to call a stateless EJB through a Tuxedo Server or directly through WebLogic.

 
Examples
cluster (more) Show how to write applications for WebLogic Server clusters, including using load balancing and failover.
ejb20 (more) Demonstrate EJB 2.0 features such as local interfaces, the EJB 2.0 container-managed persistence model, home methods, and message-driven beans. Also demonstrates automatic primary key generation, a WebLogic Server feature.
i18n (more) Show how to internationalize an application using simple XML message catalogs and write localized messages to a log.
iiop (more) Demonstrate connectivity between WebLogic Server and C++, Tuxedo, and RMI clients.
jcom (more) Show how to use WebLogic jCOM to access an EJB deployed on WebLogic Server from an Excel VBA client.
jconnector (more) Show how to use the J2EE Connector architecture to create an interface to an Enterprise Information System (EIS).
jdbc (more) Demonstrate connecting to various databases using JDBC and setting up a server-side connection pool.
jms (more) Show how to use the Java Message Service API, including sending and receiving messages, using the publish/subscribe model, and more.
jndi (more) Show how to obtain a WebLogic JNDI naming context from either the client or the server.
jsp (more) Show how to call an EJB and access a database from a JSP page, how to use a JSP tag library, and more.
jta (more) Demonstrate how to use the Java Transaction API (JTA) to handle distributed transactions with two resources or two database instances.
rmi (more) Demonstrate WebLogic RMI features such as accessing a simple RMI client and using multiple RMI objects.
security (more) Demonstrates authentication of clients, the Java Authentication and Authorization Service (JAAS) SPI, the Secure Sockets Layer (SSL) protocol, auditing of events and filtering of client connections.
servlets (more) Illustrate basic to advanced concepts of writing Java servlets, including how to create and use cookies, send HTTP error responses, and handle form input and initialization parameters.
Split Development Directory Structure A simple "hello world" EAR that illustrates basic concepts of writing Enterprise Applications using the WebLogic split development directory structure.
utils Contains utility files to use with the examples, including the demo.ddl file for creating the database tables for the demo database.
webapp (more) Demonstrate two web application modules, one that creates a cookie, and one that uses authentication to restrict access to a specific directory.
webservices (more) Demonstrate how to create WebLogic Web services based on a stateless session EJB, a custom Java class, and a JAX-RPC handler. The examples also demonstrate how to use the WebLogic-generated client classes to invoke Web services from a variety of different vendors.
wtc (more) Show how to use the WebLogic Tuxedo Connector, so that WebLogic Server applications and Tuxedo services interoperate bidirectionally.
xml (more) Demonstrate XML features such as parsing XML documents using SAX and DOM parsers, mapping a DTD to a doctype, and more.