|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CCDT and jndi lookup in Tomcat |
« View previous topic :: View next topic » |
Author |
Message
|
Ganapa |
Posted: Thu Apr 26, 2012 1:46 pm Post subject: CCDT and jndi lookup in Tomcat |
|
|
Newbie
Joined: 15 Apr 2012 Posts: 7
|
Hi,
I'm trying to use CCDT to make a client connection from a jms application which is deployed in tomcat.
CCDTURL="file:///C:\AMQCLCHL.TAB"
I tried to use the CCDTURL parameter in the context.xml file in place of the following values in the MQ QCF resource definition,
HOST=""
PORT=""
CHAN=""
TRAN=""
QMGR=""
I'm not able to establish the connection to the queue manager.
is it possible to use the CCDTURL parameter in QCF definition in the context.xml and do the jndi lookup in the code?
If its possible, will there be any change in the following jndi lookup code for CCDT?
Context ctx = (Context) new InitialContext().lookup("java:comp/env");
QueueConnectionFactory qcf
= (QueueConnectionFactory) ctx.lookup( "jms/PutQCF" );
queueCon = qcf.createQueueConnection();
I really appreciate if you could direct me with the answers for the above mentioned scenario.
Thanks,
Ganapa |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Apr 26, 2012 6:14 pm Post subject: Re: CCDT and jndi lookup in Tomcat |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Ganapa wrote: |
Hi,
I'm trying to use CCDT to make a client connection from a jms application which is deployed in tomcat.
CCDTURL="file:///C:\AMQCLCHL.TAB"
I tried to use the CCDTURL parameter in the context.xml file in place of the following values in the MQ QCF resource definition,
HOST=""
PORT=""
CHAN=""
TRAN=""
QMGR=""
I'm not able to establish the connection to the queue manager.
is it possible to use the CCDTURL parameter in QCF definition in the context.xml and do the jndi lookup in the code?
If its possible, will there be any change in the following jndi lookup code for CCDT?
Context ctx = (Context) new InitialContext().lookup("java:comp/env");
QueueConnectionFactory qcf
= (QueueConnectionFactory) ctx.lookup( "jms/PutQCF" );
queueCon = qcf.createQueueConnection();
I really appreciate if you could direct me with the answers for the above mentioned scenario.
Thanks,
Ganapa |
Try:
Code: |
CCDTURL="file:///C:/AMQCLCHL.TAB" |
If you want to keep the backslash you would have to double it...
On the other hand can you show us the definitions in the channel table?
How did you set up Tomcat JNDI to plug into the channel tab?
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|