• No se han encontrado resultados

5. CAPÍTULO V: PROPUESTA DE IMPLEMENTACIÓN DEL PLAN DE MEJORAMIENTO

5.4. Recomendaciones de implementación:

In this practice you configure the JMS Adapter resources required for two composite applications to communicate messages using JMS technology.

Assumptions None.

Tasks

1. On a Web Browser window, if you are not already logged into the Oracle WebLogic Server 11g Administration Console Web page, enter the URL http://localhost:7001/console, and login using username weblogic and password welcome1.

Configure the JMS Queue Resource

2. To configure the demoMsgQueue JMS queue perform the following steps:

a. On Domain Structure window section, expand Services > Messaging and click JMS Modules.

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

Oracle University and (Oracle Corporation) use only.

c. On the “Settings for SOAJMSModules” > Configuration tab page, in the “Summary of Resources” table, click New.

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

Oracle University and (Oracle Corporation) use only.

e. On the “Create a New JMS System Module Resource” page, in the JMS Destination Properties section, enter the following case-sensitive values, and click Next when done.

− Name: demoMsgQueue

− JNDI name: jms/demoMsgQueue

f. On the Create a New JMS System Module Resource page, select

SOASubDeployment from the Subdeployments drop-down list and click Finish.

Note: When you select the SOASubDeployments value from the Subdeployments drop-down list, the SOAJMSServer option should already be selected in JMS Server table in the Targets section. If required, select the SOAJMSServer option before you click Finish.

Oracle University and (Oracle Corporation) use only.

Configure the JMS Connection Factory Resource

3. To configure the demoCF JMS connection factory perform the following steps:

a. On the “Settings for SOAJMSModule” page, in the Summary of Resources table, click New.

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

c. On the “Create a New JMS System Module Resource” > Connection Factory Properties page, enter the following values and click Next when done.

− Name: demoCF

− JNDI Name: jms/demoCF

Oracle University and (Oracle Corporation) use only.

d. On the “Create a New JMS System Module Resource” page, verify that the soa_server1 check box is selected as the target server, and click Finish.

e. On the “Create a New JMS System Module Resource” page, verify the Messages section displays that the connection factory has been successfully created. For example:

Oracle University and (Oracle Corporation) use only.

c. On the “Settings for JmsAdapter” page, click the Configuration tab.

d. On the “Settings for JmsAdapter” > Configuration tab page, click the Outbound Connection Pools tab.

e. On the “Settings for JmsAdapter” > Configuration > Outbound Connection Pools tab page, click New.

f. On the “Create a New Outbound Connection” page, select the

oracle.tip.adapter.jms.IjmsConnectionFactory option for the Outbound Connection group, and click Next.

Oracle University and (Oracle Corporation) use only.

g. On the “Create a New Outbound Connection” page, for JNDI Name, enter eis/demo/Queue, and click Finish.

h. On the Save Deployment Plan Assistant page, enter the path

D:\Oracle\fmw\11.1.1.3\Oracle_SOA1\soa\PlanJMS.xml and click OK.

Oracle University and (Oracle Corporation) use only.

Associate the Connection Pool with the Connection Factory

5. To associate the connection pools with the connection factory in new JMS Adapter configuration plan, perform the following steps:

a. On the “Settings for JmsAdapter” page, click the Configuration tab.

b. On the “Settings for JmsAdapter” > Configuration tab page, click the Outbound Connection Pools tab.

c. On the “Settings for JmsAdapter” > Configuration > Outbound Connection Pools tab page, expand the oracle.tip.adapter.jms.IJmsConnectionFactory entry, locate and click the eis/demo/Queue link.

d. On the “Settings for oracle.tip.adapter.jms.IJmsConnectionFactory” > Properties tab page, in the Outbound Connection Properties table, enter the value jms/demoCF in the ConnectionFactoryLocation Property Value cell, press Enter, and click Save when done.

Oracle University and (Oracle Corporation) use only.

Note: Remember you must press Enter after entering the ConnectionFactoryLocation property value. Do not use the Tab key.

e. On the “Settings for oracle.tip.adapter.jms.IJmsConnectionFactory” page, verify the Messages section displays messages indicating the deployment plan has been of successfully updated. For example:

Redeploy the JMS Adapter with the New Resources

6. To redeploy the JMS adapter with the newly configured resources, perform the following steps:

a. On the Oracle WebLogic Server 11g Administrator Console home page, in the Domain Structure panel, click Deployments.

b. On the “Summary of Deployments” page, in the Deployments table locate the JmsAdapter entry and select the check box for the JmsAdapter, and click Update.

Oracle University and (Oracle Corporation) use only.

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

d. On the “Summary of Deployments” page, verify the Messages section displays messages indicating the deployments have been updated. For example:

7. Log out of the Oracle WebLogic Server 11g Administration Console. For example:

Oracle University and (Oracle Corporation) use only.

Note: You can close the Oracle WebLogic Server 11g Administration Console web page.

However, you may have to return here to correct any problems if the application fails to execute due to the JMS configuration being incorrectly configured.

Oracle University and (Oracle Corporation) use only.

Practice 6-4: Deploy and Test the Composites using a JMS Adapter