Oracle WebLogic – Steps to create Connection Factory and Queue

In this article, we will go through steps to create Connection Factory and Queue in Oracle Weblogic application server in detail

Connection Factory and Queue created here will be used in the following article to demonstrate <OSB 12c JMS Transport example using Queue>

1. Environment :

  • Windows 7 OS – 32 bit

2. Pre-requisite :

  • Oracle Weblogic application server is already installed in Windows 7 OS environment

3. Connection Factory and Queue creation steps :

Step 1: Login to already installed Oracle Weblogic application server using correct credentials

Once admin server is started, you can access the home page using below URL

Enter either of the following URL in to web browser

And enter username/password (weblogic/weblogic@123)

Note: Follow this article, if already Oracle Weblogic application server is not installed

Click here for domain creation steps

1_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_enter_credentials

Step 2: Home page of the Oracle WebLogic application server

2_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_home_page

Step 3: Create a new JMS module

Navigate to Home –> Messaging –> JMS module –> click New

3_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_click_jms_modules

Step 4: Enter name for new JMS module, for example TestJMSModule

And then click Next

4_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_create_new_jms_modules

Step 5: Select target servers, in this demo example DefaultServer

And then click Next

5_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_target_to_default_server

Step 6: Click Finish –> To create new JMS Module

6_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_click_Finish

Step 7: Check and verify whether new JMS module “TestJMSModule” has been created under Summary of JMS Modules

Click on this new JMS module –> to create ConnectionFactory and Queue

7_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_verify_new_jms_module_created

Step 8: Click New –> to create Connection Factory first and later Queue

8_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_click_new_jms_module

Step 9: Select ConnectionFactory from available options

And then click Next

9_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_select_ConnectionFactory

Step 10: Provide suitable name for ConnectionFactory and its JNDI name, for example

  • ConnectionFactory Name: TestConnFactory
  • JNDI Name: jms/test/TestConnFactory

And then click Next

10_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_provide_CF_JNDI_names

Step 11: Automatically DefaultServer will be selected for Connection Factory

And then click Finish

11_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_automatically_DefaultServer_selected

Step 12: Finally, connection factory TestConnFactory has been created successfully

Click New to create new Queue under the same JMS Module –> TestJMSModule

12_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_CF_created_successfully

Step 13: Select Queue from available options –> to create new Queue under same TestJMSModule

And then click Next

13_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_select_Queue

Step 14: Provide suitable name for Queue and its JNDI name, for example,

  • Queue Name: TestQueue
  • JNDI Name: jms/test/TestQueue

And then click Next

14_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_provide_Queue_JNDI_names

Step 15: Create New Sub deployment –> click “Create a New Subdeployment”, if not already available

15_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_create_new_subdeployment

Step 16: Provide name for Sub deployment for example, TestSubDeployment

And then click OK

16_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_create_new_subdeployment_a

Step 17: Select existing JMS target servers, in this demo example SOAJMSServer

And then click Finish

17_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_target_JMS_server

Step 18: Finally, new Queue TestQueue has been created successfully

18_Oracle_Weblogic_To_Create_Connection_Factory_and_Queue_has_been_created

In the next article, we will code Java client to send messages to queue and consume messages from queue

Related Articles :

References :

Happy Coding !!
Happy Learning !!

JMS Client - To produce and consume messages in JMS Queue
Oracle OSB 12c - File Polling/Reading and Writing using FTP Transport and authentication via Service Account