• No results found

Creating and Configuring a JMS Queue Overview

In document 12c SOA Design Acctivity (Page 79-90)

Practices for Lesson 5: Overview Practices Overview

Practice 5-5: Creating and Configuring a JMS Queue Overview

In this section, you create a JMS Queue named soaDemoQueue.

Assumptions

This practice makes no assumptions.

Tasks

1. Log in to the WebLogic Administration Server Console (http://localhost:7101/console) with the username weblogic and the password welcome1.

2. In the Domain Structure section, expand Services > Messaging and click JMS Modules.

3. On the JMS Modules page, click the SOAJMSModule link.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

4. On the Settings for SOAJMSModules Configuration page, in the Summary of Resources table, click New.

5. On the Create a New JMS System Module Resource page, select the Queue (resource type) option and click Next.

6. On the Create a New JMS System Module Resource page, in the JMS Destination Properties section, enter:

• Name: soaDemoQueue

• JNDI name: jms/soaDemoQueue

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

7. Verify your entries and click Next.

8. On the Create a New JMS System Module Resource page that appears next, perform the following:

a. Select SOASubDeployment from the Subdeployment drop-down list.

b. Select the SOAJMSServer option under Targets for the JMS Server section.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

9. Verify your selections and click Finish.

10. On the Response page, confirm whether the new JMS Queue was created successfully.

Configuring a JMS Connection Factory

11. On the Settings for SOAJMSModule page, in the Summary of Resources table, click New.

12. On the Create a New JMS System Module Resource page, for the resource type, select the Connection Factory option and click Next.

13. On the Create a New JMS System Module Resource page, in the Connection Factory Properties section, enter:

• Name: soaDemoCF

• JNDI Name: jms/soaDemoCF

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

14. Verify your entries and click Next.

15. On the Create a New JMS System Module Resource page, confirm that DefaultServer is the selected target and click Finish.

16. Confirm that the connection factory was successfully created.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

Creating a JMS Connection Pool and Associate It with the Connection Factory 17. In the Domain Structure pane, click Deployments.

18. On the Summary of Deployments Control tab page, to locate the JMSAdapter entry, in the table heading, click Next. (You click multiple times to navigate this alphabetical list.)

19. On the Summary of Deployments Control tab page, click the JmsAdapter link (not the check box).

20. On the Settings for JmsAdapter page, click the Configuration tab.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

21. On the Settings for JmsAdapter Configuration tab page, click the Outbound Connection Pools tab.

22. On the Settings for JmsAdapter Configuration > Outbound Connection Pools page, click New.

23. On the Create a New Outbound Connection page, select the

oracle.tip.adapter.jms.IjmsConnectionFactory option in the Outbound Connections Groups table and click Next.

24. On the Create a New Outbound Connection page, in the JNDI Name field, enter eis/soaDemo/Queue and click Finish.

25. On the Save Deployment Plan Assistant page, select the path and enter PlanJMS.xml as the plan name.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

26. Verify your entry and click OK.

27. On the Settings for JmsAdapter page, at the top, confirm that the messages indicate that the changes have been activated, and that you do not need to restart the JmsAdapter to reflect the new plan.

Associating the Connection Pools with the Connection Factory in a New JMS Adapter Configuration Plan

28. On the Settings for JmsAdapter page, click the Configuration tab.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

29. On the Settings for JmsAdapter Configuration > Outbound Connection Pools tab page, in Outbound Connection Pool Configuration Table, expand the

oracle.tip.adapter.jms.IjmsConnectionFactory entry and click the eis/soaDemo/Queue link.

30. On the Settings for oracle.tip.adapter.jms.IjmsConnectionFactory Properties tab page, in the Outbound Connection Properties table, click in the Property Value cells to enter the following Property Name value:

• ConnectionFactoryLocation: jms/soaDemoCF

Note: Ensure that you press Enter after entering the connection factory location text value!

Do not use the Tab key.

31. On the Settings for oracle.tip.adapter.jms.IjmsConnectionFactory Properties tab page, click Save.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

32. When the messages are displayed, confirm that the changes were successful.

Redeploying the JMS Adapter with the Newly Configured Resources 33. In the Domain Structure panel, click Deployments.

34. On the Summary of Deployments page, in the Deployments table, click Next.

35. On the Summary of Deployments page, in the Deployments table, select the check box next to JmsAdapter and click Update.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

36. On the Update Application Assistant page, select the “Redeploy this application using the following deployment files” option and click Finish.

37. When the Messages response is displayed, confirm that the deployments were updated.

38. Minimize your browser.

KONARK JAIN (konarkjain@inฺibmฺcom) has a non-transferable license to use this Student Guideฺ

Unauthorized reproduction or distribution prohibitedฺ Copyright© 2016, Oracle and/or its affiliatesฺ

Practice 5-6: Creating a Composite Application and JMS Adapter

In document 12c SOA Design Acctivity (Page 79-90)