If you choose to use the P6 Event provider delivered in Gateway, then configure the Gateway WebLogic domain to consume P6 event messages as follows:
- Ensure the Primavera Gateway domain is running.
- Sign in to the WebLogic Administration Server Console for the Gateway domain:
- In a browser, enter the following location:
http://<hostname>:<port>/console
Where, hostname and port is the hostname and port of your Primavera Gateway domain in WebLogic. The default port is 7001.
- Enter the WebLogic administrator user name and password.
- In a browser, enter the following location:
- In the Change Center pane, select Lock and Edit before you make any changes to the domain.
- Create a JMS server as follows.
- In the Domain Structure pane, expand Services, Messaging, JMS Servers.
- In the Summary of JMS Servers pane, select New.
Note: Select Next on each screen to advance to the next step.
- Enter a Name for the JMS Server. For example, Gateway JMS Server.
- Select Create a New Store.
- In the Type list, select File Store.
- Enter a Name for the File Store.
- Select the Target for the file store:
For Admin server, select AdminServer.
For Managed server, select GatewayCluster.
- Enter the Directory of the physical location of the file store. For example, c:\JMSFilestore.
- Select OK.
- Select Finish.
- Create a JMS module as follows:
- In the Domain Structure pane, expand Services, Messaging, and JMS Modules.
- In the Summary of JMS Modules pane, select New.
- Enter a Name for the JMS module.
- Depending on your configuration, select the Target for the file store, as AdminServer, or GatewayCluster for a managed server.
- Select Finish.
- Create a Foreign Server in the JMS module as follows:
- In the Domain Structure pane, expand Services, Messaging, and JMS Modules.
- Select the JMS module created in step 5.
- On the Configuration tab of the Settings for <JMS Module> pane, select New.
- Select Foreign Server.
- Enter a Name for the foreign server.
- Depending on the configuration, select the Target as AdminServer, or gatewayCluster for a Managed server.
- Select Advanced Targeting and then select Create a New SubDeployment.
- Enter a name for the subdeployment and then select OK.
- In the subdeployment list, select the created subdeployment.
- Depending on your configuration, select the Target as AdminServer, or gatewayCluster for a Managed server, and the JMS server created in step 4.
- Select Finish.
- Select Save to save the foreign server with a subdeployment.
- Enter configuration settings for the foreign server created as follows:
- Select the foreign server created in step 6.
- In the Settings for <Foreign Server Name> pane, select the Configuration tab, and then the General tab.
- Select the new foreign server created and enter values for the following configuration settings:
- In the JNDI Initial Context Factory field, retain the default value.
- In the JNDI Connection URL field, enter the URL to the P6 EPPM domain in the format: t3://<P6_EPPM_host>:<port>/
- In the JNDI Properties Credential field, enter the P6 EPPM WebLogic domain password.
- In the Confirm JNDI Properties Credential field, reconfirm the entered password.
- In the JNDI Properties field, enter the P6 EPPM WebLogic domain user name in the following format: java.naming.security.principal=<P6 EPPM WebLogic domain user name>
- Select Save. The newly created foreign server displays in the Configuration tab.
- Create a connection factory for the foreign server as follows:
- In the Settings for <Foreign Server Name> pane, select the Configuration tab, and then the Connection Factories tab.
- Select New.
- Enter a Name for the connection factory.
- Enter the Local JNDI Name. For example, jms/newCF.
Note: Make a note of the value entered in this field. You will need to enter this value to set up an event provider to a P6 Application deployment.
- Enter the JNDI name of the P6 EPPM Connection Factory as the Remote JNDI Name. For example, jms/P6ConnectionFactory.
- Select OK.
- Create a destination for the foreign server as follows:
- In the Settings for <Foreign Server Name> pane, select the Configuration tab, and then the Destinations tab.
- Select New.
- Enter a name for the foreign destination.
- In the Local JNDI Name, enter the name of the JMS queue used by Gateway. For example, jms/newGWQueue.
Note: Make a note of the value entered in this field. You will need to enter this value to set up an event provider to a P6 Application deployment.
- Enter the name of the P6 EPPM JMS queue as the Remote JNDI Name. For example, jms/P6Queue.
- Select OK.
- In the Change Center pane, select Activate Changes to enforce all the changes made to the domain.