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 » PubSub in MQ JMS

Post new topic  Reply to topic
 PubSub in MQ JMS « View previous topic :: View next topic » 
Author Message
lecmns
PostPosted: Mon May 13, 2002 2:23 am    Post subject: PubSub in MQ JMS Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

fOlks..

I am trying to implement a Publish / Subscribe module using MQ JMS APIs.

am using JNID to look up configured TCF and T JNDI Objects.

following are the configured objects

InitCtx> display T(ivtT)

BROKERDURSUBQ(SYSTEM.JMS.D.SUBSCRIBER.QUEUE)
TOPIC(MQJMS/PSIVT/Information)
PERSISTENCE(APP)
CCSID(1208)
TARGCLIENT(JMS)
ENCODING(NATIVE)
BROKERCCDURSUBQ(SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE)
PRIORITY(APP)
EXPIRY(APP)
VERSION(1)

InitCtx> display TCF(ivtTCF)

STATREFRESHINT(60000)
BROKERCONQ(SYSTEM.BROKER.CONTROL.QUEUE)
QMANAGER()
BROKERPUBQ(SYSTEM.BROKER.DEFAULT.STREAM)
BROKERVER(V1)
USECONNPOOLING(YES)
MSGBATCHSZ(10)
BROKERQMGR()
BROKERSUBQ(SYSTEM.JMS.ND.SUBSCRIBER.QUEUE)
TRANSPORT(BIND)
PUBACKINT(25)
SYNCPOINTALLGETS(NO)
POLLINGINT(5000)
BROKERCCSUBQ(SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE)
VERSION(2)

am getting an error as follows when I try to look up for TCF.

"javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial"

what could be the problem?

I have the rt.jar in the classpath that has the Context.class and the InitialContext.class. I have the fscontext.jar in the classpath for "com.sun.jndi.fscontext.RefFSContextFactory" to be used as the Initial_Context_Factory. My Provider_url is "file://172.30.66.14/C:/Program Files/IBM/MQSeries/Java".

what's wrong in my set up?
I have been trying out all I could think on this..
but nothing seem to solve my prob so far..

help me out guys..
I just have some mroe time left to get things up and running..

thankx in advance..
mns
Back to top
View user's profile Send private message
kolban
PostPosted: Mon May 13, 2002 6:07 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Can you post the code that creates the JNDI context and attempts to access it. It looks very, very much like a JNDI problem.
Back to top
View user's profile Send private message
lecmns
PostPosted: Mon May 13, 2002 6:11 am    Post subject: ty buddy Reply with quote

Apprentice

Joined: 26 Dec 2001
Posts: 36

Hey..

I just fuond the problem..

yes, it was a JNDI issue..

I was making the Context with wrong key names..

sorry for the trouble..

regards
mNs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » PubSub in MQ JMS
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.