Monday 8 January 2018

Creating a JMS queue in oracle weblogic server 12C

In this post we will see how to create a JMS queue in weblogic server.
JMS queue in weblogic server will associate with some other additional resources.
A JMS server implements the JMS infrastructure in weblogic server. Destinations like queues , topics can be targeted to weblogic server instance that has a JMS server configured.
JMS Server
A JMS server acts as a management container for resources within JMS modules. A JMS server is required in order to create a JMS module.
JMS Module
A JMS module is a definition which contains JMS resources such as queues and topics. A JMS module is required in order to create a JMS queue.
Subdeployment
JMS modules are targeted to one or more WLS instances or a cluster. Resources within a JMS module, such as queues and topics are also targeted to a JMS server or WLS server instances. A subdeployment is a grouping of targets. It is also known as advanced targeting.
Connection Factory
A connection factory is a resource that enables JMS clients to create connections to JMS destinations.
JMS Queue
A JMS queue (as opposed to a JMS topic) is a point-to-point destination type. A message is written to a specific queue or received from a specific queue.
Lets start with configuration steps.
Creating a JMS server
For creating JMS server, login to your weblogic server console .
Go to Services -> Messaging -> JMS Servers
jms1.JPG
Click on New to create a JMS server . Enter the name and click on Next , For persistent store click on “Create a New Store”.
jms2jms3per
Select the Type as “File Store” and click on Next.
jms3
Enter the name and Target to “Admin Server” and click on Ok to finish the file store.
jms4
Now it will take you to JMS server configuration window, select the persistent store as “TestFileStore” which we have created above and click on Next.
jms5
Select the Target as “Admin Server” and click on Finish button.
jms6.JPG
You can see that JMS server is created and targeted to Admin server.
jms7
Creating a JMS Module
Go to Services -> Messaging -> JMS Modules
Click on New to create a new JMS module, provide the name and click on Next.
jms8.JPG
Select the Target as “Admin Server” and click on Next.
jms9.JPG
Click on Finish button to complete the set up for JMS module.
jms10.JPG
Creating a SubDeployment
Now open your newly created JMS module (TestModule) and go to “SubDeployments” tab.
Click on New to create a new sub deployment.
jms11.JPG
Enter the name and click on Next.
jms12
Select the Target as “TestJMSserver” and click on Finish button.
jms13.JPG
Now you can see that your Subdeplyment created and targeted to JMS server.
jms14.JPG
Creating a Connection Factory
Go to Services -> Messaging -> JMS Modules
Now open your newly created JMS module (TestModule) and click on New to create a new connection factory.
jms15.JPG
Select the radio button “Connection Factory” and click on Next.
jms16.JPG
Provide the name and JNDI name click one Next.
jms17.JPG
In targets page , click on “Advanced Targeting” option to target to the subdeployment we have created earlier.
jms18
Select the Subdeployment (TestSubDeploy) and click on Finish.
jms19.JPG
Now you can see the connection factory is created and targeted to the TestJMSServer.
jms20.JPG
Creating a JMS Queue
Go to Services -> Messaging -> JMS Modules
Now open your newly created JMS module (TestModule) and click on New to create a new Queue.
jms21.JPG
Provide the queue name and JNDI name and click on Next.
jms22.JPG
Select the Subdeployment (TestSubDeploy) and click on Finish.
jms23.JPG
Now you can see the queue is created and targeted to the TestJMSServer.
jms24.JPG
JMS queue set up is complete and it is ready to use.

No comments:

Post a Comment