Author |
Message
|
moonwalker |
Posted: Tue Jun 16, 2009 7:23 am Post subject: Generating the .bindings file |
|
|
 Apprentice
Joined: 02 Jun 2009 Posts: 42
|
Hi All,
How to generate the .bindings file from jmsadmin in Websphere application server. This is a requirement because one of our application can access the mq jms resources defined in the .bindings file alone and through by no other means.
Please help. Thanks in advance. |
|
Back to top |
|
 |
belchman |
Posted: Tue Jun 16, 2009 10:55 am Post subject: |
|
|
Partisan
Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA
|
Read the section named "Using the WebSphere MQ JMS administration tool" from the v7 Using Java manual. I am sure it is in the v6 document of the same name but you can look that up as well as I can.
JMSAdmin operates similarly to runmqsc. _________________ Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter |
|
Back to top |
|
 |
belchman |
Posted: Tue Jun 16, 2009 10:58 am Post subject: |
|
|
Partisan
Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA
|
|
Back to top |
|
 |
betterchoices |
Posted: Wed Jun 17, 2009 12:07 am Post subject: |
|
|
Novice
Joined: 08 Jun 2009 Posts: 18
|
I wanted to create a simple file-based JNDI context and configure the JMS objects in that JNDI
namespace. These JNDI objects are used by applications running in WebSphere
Application Server Community Edition to connect to the WebSphere MQ queue manager.
Right now i m using mq7 and I use JMS Administered Objects wizard in Mq Explorer to generate .bindings file.
In MQ6
Create the directory C:\MQ-JNDI. Under new folder C:\MQ-JNDI, create a file mq-jndi.properties with
the following contents:
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/MQ-JNDI
SECURITY_AUTHENTICATION=none
Next open a command prompt, cd to C:\MQ-JNDI, create the QueueConnectionFactory
and Queue objects by executing the command:
“C:\Program Files\IBM\WebSphere MQ\Java\bin\JMSAdmin.bat”
-cfg mq-jndi.properties
You should see this prompt, where you can configure the JNDI objects:
InitCtx>
At the prompt, copy and paste all five lines of following commands together
and press Enter.
def xaqcf(MQSenderQCF) qmgr(MQTest)
def xaqcf(MQReceiverQCF) qmgr(MQTest)
def q(MQSenderQueue) qmgr(MQTest) queue(MQSenderQueue)
def q(MQReceiverQueue) qmgr(MQTest) queue(MQReceiverQueue)
end
You should see a message like “Stopping Websphere MQ classes for Java(tm)
Message Service Administration” after you press Enter after the last line “end”.
MQTest is my Queue manager. MQSenderQueue and MQReceiver are my queues.
I am a Java guy and new to MQ. I only know this much, and was successful in doing JNDi lookup to MQ objects. |
|
Back to top |
|
 |
moonwalker |
Posted: Wed Jun 17, 2009 10:14 am Post subject: |
|
|
 Apprentice
Joined: 02 Jun 2009 Posts: 42
|
I am really happy about your suggestions and I am able to do a jndi lookup now. Thanks.  |
|
Back to top |
|
 |
|