This post explains how to create a simple JNDI for MQ Adapter in Weblogic 10.3.x. This JNDI properties can be further changed to configure One-way or Two-way SSL on MQ Adapter as explained in post Enabling SSL on MQ Series Adapter - Part 2.
- Login to Weblogic Server Administration Console and navigate to Deployments > MQSeriesAdapter > Configuration Tab > Outbound Connection Pool.
- Click on New button and select javax.resource.cci.ConnectionFactory and click Next.
- Give an appropriate JNDI name and press Finish. This JNDI name will be used by your MQ Adapter inside the BPEL process. If it asks to Create/Save a Deployment Plan, Create/Save a deployment plan for this JNDI reference.
- Go back to the MQSeriesAdapter > Configuration Tab > Outbound Connection Pool and expand the connection factory javax.resource.cci.ConnectionFactory. Click on the JNDI created by you above.
- Set the following properties for the above created JNDI. Leave the other properties to their default. Remember to hit Enter after updating each property.
S. No
|
Property Name
|
Property Value
|
Description
|
---|---|---|---|
1
|
channelName
|
<Channel Name>
|
The name of the channel which is of server-conection type. Ask
your MQ Server Admin to provide this detail. Your process
will connect to this channel.
|
2
|
hostName
|
<Host Name>
|
The host name of the MQ server
|
3
|
password
|
<Password to access MQ>
|
Specify the password to access the MQ Server
|
4
|
portNumber
|
<MQ Server Port>
|
Network port to connect to MQ server
|
5
|
queueManagerName
|
<Queue Manager name on MQ Server>
|
Queue Manager provides access to the queues and also transfers
messages to other queue managers through message channels.
|
6
|
SSLEnable
|
false
|
By default this value is false. As we're not using any SSL in this post,
leave this value as false.
|
7
|
userID
|
<username to connect MQ>
|
User Id to access MQ server
|
8
|
XATransaction
|
false
|
By default this is False. Keep it false unless you want to
enable global transactions on this adapter.
|
- Save the properties by hitting the Save button at the bottom of the properties page.
- Navigate back to Deployments and check MQSeriesAdapter. Now press Update button on the top.
- On the next page, choose to Redeploy this application using the following deployment files and hit Finish.
Hi, Thanks for this info. Would you perhaps know how one would go about removing MQ from one's JMS scope. Seeing as how Weblogic has queue's and its own Queue Manager, its quite a waste of resources to using another paid product like IBM MQ when the functionality exists in Weblogic already..
ReplyDelete