-
1. Re: JBoss and MQSeries on different machines
aanchalm Jun 26, 2002 2:07 AM (in response to crypto)Hi,
Which version of Jboss are you using . I too am trying desperately to get MQseries to work with Jboss 2.2 . Could u give me all details which you use for configuring Jboss with MQSeries . I am able to connect to the MQSeries currently on same m/c , but it still either says queue manager not found or an JMSMQ 1010 error . I'm confused and need help . If you can give me the info of the configuration details that you used for MQSeries with Jboss , please let me know .
Thanx,
aanchal. -
2. Re: JBoss and MQSeries on different machines
janek Jun 26, 2002 8:11 AM (in response to crypto)Have a look at these results:
http://groups.google.com/groups?q=mqjbnd04
http://www.google.com/search?q=mqjbnd04
-Janek -
3. Re: JBoss and MQSeries on different machines
crypto Jun 28, 2002 5:32 AM (in response to crypto)I know what the problem is i am encountering :
the Mainframe uses EBCDIC and the development workstation running Win2000 uses Unicode :
i'm trying to find what i need to change in the configuration to get this conversion automatically
...
/Werner -
4. Re: JBoss and MQSeries on different machines
crypto Jul 2, 2002 4:53 AM (in response to crypto)Hello,
This is some info for people that may run into the same issue :
when using your JBoss application server to contact an MQSeries running on a mainframe you need to make sure that the conversion to EBCDIC format takes place in the background.
I did this by specifying the following parameters when creating the JNDI context for the IBM JMS client implementation classes :
1. Start the JMSAdmin tool in trace mode in the
MQSERIES_ROOT_INSTALL/bin folder
JMSAdmin -t
2. Create an entry for the QueueConnectionFactory in the JNDI namespace :
(MF = mainframe)
InitCtx> def qcf(QueueConnectionFactory)
qmanager(NAME_OF_THE_QUEUEMANAGER_ON_THE_MF)
host(MF_IP_ADRESS)
port(MF_MQSERIES_PORT) transport(CLIENT) CCSID(500) channel(MF_MQSERIES_CHANNEL_NAME)
the CLIENT setting sets the transport between JMS client and mainframe to TCP/IP
and the CCSID(500) defines that the target system uses IBM-500 file format (=EBCDIC)
3. Define a 'queue' context
InitCtx> def ctx(queue)
4. Change to the 'queue' context
InitCtx> change ctx(queue)
5. define the name for the queue you want to use :
InitCtx/queue> def q(testQueue)
qmanager(NAME_OF_THE_QUEUEMANAGER_ON_THE_MF)
queue(NAME_OF_THE_QUEUE_ON_THE_MF) TARGCLIENT(MQ)
6. display the contents for the JNDI context
InitCtx> dis ctx
Contents of InitCtx
.bindings java.io.File
[D] queue javax.naming.Context
a QueueConnectionFactory com.ibm.mq.jms.MQQueueConnectionFactory
3 Object(s)
1 Context(s)
2 Binding(s), 1 Administered
7. leave the JMSAdmin tool
InitCtx/queue> end
That should do it ;-)
/Werner Ramaekers