Creating Java Message Service (JMS) Resources in WebLogic Server 12c
Overview
- Download and install Oracle WebLogic Server 12c (version
12.1.1 or later) from this link.
Follow the instructions included in the README file in the zip archive to install and set up the server.
This tutorial assumes that you have installed the server to C:\weblogic\wls and created a domain at C:\weblogic\domain.
Note: It is recommended that the path that you choose for WebLogic Server does not contain spaces or non-alphanumeric characters.
- Have installed JDK 7 version 4 or later.
- Have installed NetBeans Enterprise Edition, version 7.1.2 or
later.
- Have installed WebLogic Server 12c version 12.1.1.
- Download and unzip the files.zip
file that contains the NetBeans projects you need to complete
this tutorial.
Note: It is recommended that the directory path where you unzip the NetBeans projects does not contain spaces or non-alphanumeric characters.
Purpose
This tutorial covers how to configure Java Message Service
(JMS) System Modules and JMS Resources in WebLogic Server 12c.
Time to Complete
Approximately 30 minutes
Introduction
Some integrated development environments (IDEs) include wizards
and built-in tools to configure and create JMS resources
directly from the IDE. During deployment, the generated
resources are created on behalf of the developer. One example is
the NetBeans IDE and GlassFish 3.1.2. The tutorial titled Creating
a Simple Java Message Service (JMS) Producer with NetBeans and
GlassFish demonstrated how to use NetBeans to create JMS
resources for GlassFish using the capabilities built into the
IDE.
In this tutorial, you will create the same JMS resources using WebLogic Server 12c's administration console. Finally, you will deploy two provided NetBeans projects, JMSProducer and MDBExample, to demonstrate that your JMS services are working.
Software Requirements
The following software is required to complete this tutorial in Windows platform:
Prerequisites
Before starting this tutorial, you should:
Add WebLogic Server 12c to NetBeans
This section will ensure that you have installed WebLogic
Server 12c properly and can start the server from NetBeans.
Start WebLogic Server from NetBeans
In this section, you will start the WebLogic Server instance you installed from NetBeans.
Create a JMS Server using the WebLogic Server Admin
Console
In this section, you will use the WebLogic Server Admin Console
to create a JMS Server. A JMS server is the container that
manages JMS queue and topic destinations. A JMS Server can be
configured to persist messages, so they can be delivered even if
the server instance they were received at went down. For more
information on persistent message servers, see the Resources
section of this tutorial.
Creating a JMS Module
Next you will create a JMS System Module that contains your queue and connection factory.
Create a Queue Destination and Connection Factory Resource
In this section you will create the queue destination and
create the connection factory.
Create the Queue Destination
Create the Connection Factory
Look at the resources through NetBeans
Test the JMS Queue and Connection Factory with the provided NetBeans projects
Two NetBeans projects are included in this tutorial. The JSFProducer project has a JSF page as a front-end to a Managed Bean that sends a text message to the queue, jms/myQueue. The second project, MDBExample, reads the message from the queue using a Message-Driven Bean.
Summary
- Add a WebLogic Server instance to NetBeans
- Create a JMS Queue Destination and Connection Factory using
the WebLogic Server admin console
- View the resources you added to WebLogic server in NetBeans
- Deploy application from NetBeans to WebLogic Server 12c
- Configuring
Messaging (Oracle Fusion Middleware Oracle WebLogic
Server Administration Console Online Help 12c Release 1 -
12.1.1)
- The Java EE 6 Tutorial: Java Message Service
Concepts
- Java Message Service Documentation
- Developing Java EE 6 Applications for the Java EE 6 Platform
- To learn more about Java Message Service and Java EE 6
Technologies, refer to additional tutorials in the Oracle Learning Library
- Lead Curriculum Developer: Tom McGinn
In this tutorial, you have learned how to:
Resources
Credits
To help navigate this Oracle by Example, note the following:
- Hiding Header Buttons:
- Click the Title to hide the buttons in the header. To show the buttons again, simply click the Title again.
- Topic List Button:
- A list of all the topics. Click one of the topics to navigate to that section.
- Expand/Collapse All Topics:
- To show/hide all the detail for all the sections. By default, all topics are collapsed
- Show/Hide All Images:
- To show/hide all the screenshots. By default, all images are displayed.
- Print:
- To print the content. The content currently displayed or hidden will be printed.
To navigate to a particular section in this tutorial, select the topic from the list.