Labels

Tuesday, June 19, 2012

How to create Foreign JNDI in Weblogic?

Scenario : When you are migrating the BPEL code from 10g to 11g you might want to re use the JMS JNDI which is used in 10g instead of using the weblogic JNDI.
Solution :  Follow the below steps to configure the foreign JNDI in weblogic server
1. Login to web logic console
2. Click on Lock and Edit on top left corner
clip_image002
3. Click on Services — > Data Sources
clip_image004
4. Click on New – > Generic/Multi Data source. If clustered database select Multi Data source
clip_image006
5. Enter Name and JNDI Name
clip_image008
6. Select the below Option
clip_image010
7. Give the properties of your database
clip_image012
8. Click on test configuration, then Finish
clip_image014
9. Click on JMSModules
clip_image016
10. Select New
clip_image018
11. Enter the below values
clip_image020
12. Select the managed servers where you want to deploy the configuration
clip_image022
13. Click on AQJMSModule which you just created. Select New
clip_image024
14. Select Foreign Server
clip_image026
15. Enter the below value
clip_image028
16. Select SOA managed servers for deployment
clip_image030
17. Click on AQForeignJMSServer
18. Enter the below values, enter oracle.jms.AQjmsInitialContextFactory in JMDI Initial Context Factory
clip_image032
19. Click on Connection Factories — > New
20. Enter the below values. Use AQJMSForeignConnectionFactory in the Name
clip_image034
21. Click on Finish
22. Click on Activate Changes on top left corner.
clip_image036
23. Click on Lock and Edit.
clip_image038
24. Click on Destinations — > New
clip_image040
25. Enter the name, Local JNDI name and Remote JNDI name. Local JNDI name will be the one which is used in your code as “DestinationName” and Remote JNDI name will the queue name in the format “Topics/TOPIC_NAME”clip_image042
26. Click on Deployments
clip_image044
27. Click on JMS Adapter
clip_image046
28. Click on Configuration — > Outbound connection pool
clip_image048
29. Click on New
30. Select oracle.tip.adapter.jms.IJmsConnectionFactory
31. Enter the JNDI name (eis/JMS/Test). Click on Finish
32. Go to Configuration — > Outbound Connection Pool — > Expand oracle.tip.adapter.jms.IJmsConnectionFactory. Click on the new JNDI created
clip_image050
33. Enter the below values and press ENTER after entering each value. Then click on SAVE
clip_image052
34. Click on Deployments
clip_image054
35. Select JMS Adapter and click on Update option
clip_image056
36. Click Next
clip_image058
37. Click Finish
clip_image060
38. Click on Activate Changes on top left corner.
clip_image036[1]
39. Restart the managed server

No comments:

Post a Comment