ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Java / JMSGenerating the .bindings file

Post new topicReply to topic
Generating the .bindings file View previous topic :: View next topic
Author Message
moonwalker
PostPosted: Tue Jun 16, 2009 7:23 am Post subject: Generating the .bindings file Reply with quote

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
View user's profile Send private message
belchman
PostPosted: Tue Jun 16, 2009 10:55 am Post subject: Reply with quote

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
View user's profile Send private message
belchman
PostPosted: Tue Jun 16, 2009 10:58 am Post subject: Reply with quote

Partisan

Joined: 31 Mar 2006
Posts: 386
Location: Ohio, USA

Oops... one assumption I made is that the WAS jmsadmin is the same as the websphere MQ jmsadmin...

here is a link to the Websphere MQ manual I refer you to...

ftp://ftp.software.ibm.com/software/integration/wmq/docs/V7.0/csqzaw17.pdf
_________________
Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter
Back to top
View user's profile Send private message
betterchoices
PostPosted: Wed Jun 17, 2009 12:07 am Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
moonwalker
PostPosted: Wed Jun 17, 2009 10:14 am Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSGenerating the .bindings file
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.