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 Index » IBM MQ Java / JMS » CCDT and jndi lookup in Tomcat

Post new topic  Reply to topic
 CCDT and jndi lookup in Tomcat « View previous topic :: View next topic » 
Author Message
Ganapa
PostPosted: Thu Apr 26, 2012 1:46 pm    Post subject: CCDT and jndi lookup in Tomcat Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 26, 2012 6:14 pm    Post subject: Re: CCDT and jndi lookup in Tomcat Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » CCDT and jndi lookup in Tomcat
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.