Wednesday, March 30, 2011

Creating a JMS queue in WebLogic Server

These instructions describe how to create a JMS queue (or topic) in Oracle WebLogic Server 11g (10.3.x). This will create a queue to be used by your SOA code called "jms/IPNWebQueue".

This involves creating a persistent store, a JMS Server, a JMS Module, a subdeployment, and finally the queue or topic.

1. Create a Persistent Store

a. Log in to the WebLogic Server Administration Console

b. Click “Lock & Edit”

c. Navigate to “soa_domain --> Services --> Persistent Stores”

At this point, you may create a file persistent store or a JDBC persistent store.

Create a File Persistent Store

d.    Click “New --> Create FileStore”

e.    Use the following settings:
Name:        IPNWebFileStore
Target:        soa_server1
Directory:    /u01/app/oracle/middleware/user_projects/domains/soa_domain/servers/soa_server1/IPNWebFileStore     (Create this directory on the server first!)
Create a JDBC Persistent Store

d.    Click “New --> Create JDBCStore”

e.    Use the following settings:
Name:            IPNWebJDBCStore
Target:            soa_server1
Datasource:    IPNWebDataSource (create new data source)
Name:            IPNWebDataSource
JNDI:              jdbc/db/Queue
JDBC URL:     jdbc:oracle:thin:@dbhost:1521:dbsid
Driver:            oracle.jdbc.OracleDriver
Targets:          soa_server1
2. Create JMS Server

a. Navigate to “soa_domain --> Services --> Messaging --> JMS Servers”

b. Click “New”

c. Use the following settings:
Name:                  IPNWebServer
Persistent Store:   IPNWebFileStore    (or IPNWebJDBCStore, depending on which one to use)
Target:                  soa_server1
3. Create JMS Module and Subdeployment

a. Navigate to “soa_domain --> Services --> Messaging --> JMS Modules”

b. Click “New”

c. Use the following settings:
Name:       IPNWebModule
Targets:      soa_server1
Create       Subdeployment
d. Navigate to “soa_domain --> Services --> Messaging --> JMS Modules”

e. Click on “IPNWebModule”

f. Click on “Subdeployments”

g. Click “New”

h. Use the following settings:
Name:      IPNWebSubdeployment
Targets:    IPNWebServer
4. Create Queue (or Topic)

a. Navigate to “soa_domain --> Services --> Messaging --> JMS Modules”

b. Click on “IPNWebModule”

c. Click “New”

d. Use the following settings:
Resource Type:      Queue        (or Topic, depending on what you want to use)
Name:                   IPNWebQueue
JNDI Name:            jms/IPNWebQueue
Subdeployments:    IPNWebSubdeployment
JMS Servers:          IPNWebServer
Now, the name of the queue that your SOA code will use is "jms/IPNWebQueue".


Ahmed Aboulnaga

2 comments:

Anonymous said...

nice job

kishore said...

nice job