In this post first I am going to give the steps to create JMS queue in weblogic.
Pre requisites to do these.. You have to have weblogic server and SOA suite installed.
1) Login to weblogic administration console.
2) Navigate to Services-->Messaging-->JMSServers. 3) Now in JMS Servers table click New
4) Give the server name and persistent store.
5) Select the target server. (Generally SOA server) and finish.
Changes happened beacuse of JMSServer creation refelcts in config.xml ( D:\Jdeveloper1113\user_projects\domains\base_domain\config)
6) Now Navigate to Services-->Messaging-->JMSModules
7) Click on New in JMS Modules table.
8) Give the name and click on Next
9) Select the target and click on Next and in next page finish the creation of JMSModule.
10) You can see the created JMSModule in the JMSModule table as above and chages will be reflected in jmsmodulenamemodule-jms.xml [@ D:\Jdeveloper1113\user_projects\domains\base_domain\config\jms]
11) Now create Queue and connection factory by clicking on the created JMSModule.
12) Click new on Summary of Resources table.
13) Select Queue and then next
14) Now give the queue name and JNDI name and then to next page
15) Here if we are doing queue creation in existing module it will show us existing subdeployment. If we are doing in new one create new subdeployment, give some name and select the JMSSerevr finish the queue creation.
Here entries will be added to the same jmsmodulenamemodule-jms.xml
16) Now select connection factory after reaching the step 12 page and in next page give connection factory name and JNDI and finish the CF creation.
These entries also will be added to the same jmsmodulenamemodule-jms.xml
Now we are done with queue and connection factory creation
Now we have to redeploy JMSAdapter after configuring connection pools.
Select the Deployments (above Services) then in the table displayed select JMSAdapter
Now select configuration and then Outbound Connection Pools.
Now click on New button in Outbound Connection Pool Configuration Table and go to next page.
Here select the radio button (oracle.tip.adapter.jms.IJmsConnectionFactory) and next
Give the JNDI name and finish the process.(say eis/PavanQueue/PavanQueueCF)
At this point, it will ask us for the deployment plan location. Click on the path to the directory you created earlier and enter Plan.xml for the plan name. If we are doing this first time it will create new Plan.xml at the specified location.
If we oracle.tip.adapter.jms.IJmsConnectionFactory we can see the Pool we have created as above.
Select the one created now, then it will take us to a page where we can see Outbound Connection Properties table. In this table give the connection factory location (The one we have given in step 16 and click Enter and then save)
We have done with configuration of the connection pool, now we have to redeploy the JMSAdapter
Now again Come to Deployments (above Services) then in the table select JMSAdapter(not clicking the link, check the check box ).Now Update button will get enabled.
Click on Update and in next page check the redeploy button and finish the redeployment.
With these steps we are ready with the queues.
Now in BPEL while configuring the JMS adapter select the queue created in the server and give the location that we have provided while configuring Connection pool(eis/PavanQueue/PavanQueueCF)
Now deploy the the process and you can checkthe queue in monitor tab.(JMSModules-->YourJMSModule-->YourQueue-->Monitoring)
Regards
PavanKumar.M.V.S.S.S.S.
No comments:
Post a Comment