Through a custom installation and selecting to install the Server Examples, you have access to code examples and sample applications that offer several approaches to learning about and working with WebLogic Server.
WebLogic Server optionally installs API code examples in
WL_HOME is the top-level directory of your WebLogic Server installation, and makes them available from the Start menu. On Linux and other platforms the Examples Server can be started from the
The default administration username and password for the Examples domain is
If you change the password of the user
weblogic, WebLogic Server may fail to boot. For more information and workarounds, see "Limitation Regarding User weblogic" in Managing Server Startup and Shutdown for Oracle WebLogic Server.
The examples are grouped in the following categories; the directory that contains the examples of a particular category is in parentheses:
Database Connectivity (jdbc): Use DataSources, MultiDataSources, and Rowsets.
EJB (ejb): Create stateless, stateful, entity, and message-driven EJBs, and more.
Internationalization (i18n): Internationalize an application using simple message catalogs.
Messaging (jms): Use JMS topics, queues, and message-driven beans.
Resource Adapter (resadapter): Use an entity EJB to interact with a Java EE Connector resource adapter.
Security (security): Configure authentication, authorization, SSL, and SAML for Web single sign-on.
Transactions (jta): Use JTA to perform distributed transactions using the two phase commit protocol across two XA resources.
Web Application (webapp): Create simple servlets and JSPs, use the HTTP Publish-Subscribe server, and more.
Web Services (webservices): Create a variety of Web Services using JWS annotations.
XML (xml): Use the StAX API and XMLBeans.
Cluster (cluster): Cluster an EJB and use HTTP session state replication.
WebLogic Scripting Tool (wlst): Use the WebLogic Scripting Tool (WLST) to configure and manage a running WebLogic Administration Server.
Split Development (splitdir): Use the WebLogic split development directory structure to build, package, and deploy Enterprise Applications.
Service Component Architecture (sca): Use WebLogic SCA, a lightweight Spring 2.5 (or higher) container, in a shopping cart application that demonstrates many of its key features.
Spring (spring): Use Spring-simplified configuration in a Spring-based Web application.
Avitek Medical Records (or "MedRec") is a comprehensive educational sample application that demonstrates WebLogic Server and Java EE features, as well as best practices. If you select to install the Server Examples, Avitek Medical Records is available from the Start menu on Windows machines. On Linux and other platforms it can be started from the
WL_HOME/samples/domains/medrec directory, where
WL_HOME is the top-level installation directory for WebLogic Server.
The sample application, MedRec (Spring) demonstrates Spring application development practices.
The default administration username and password for the Medical Records domain is
Derby is an open source relational database management system based on Java, JDBC, and SQL standards. It is bundled with WebLogic Server for use by the sample applications and code examples as a demonstration database. For more information about Derby, see