This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

problems with JMS communication between two weblogic servers running remotely

Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am getting this error while communication the remote JMS queue

"weblogic.jms.common.JMSException: Connection not found"

My code is

public InitialContext getInitialContext()
throws NamingException, Exception
String location = CLASS_NAME + ".getInitialContext()";"Entering : " + location);

String initialCtx = PMTCProperties.getProperty("FAS_INI_CTC_FACT");"FAS initialCtx : " + initialCtx);
String providerURL = PMTCProperties.getProperty("FAS_URL");"FAS providerURL : " + providerURL);
String fasAccessUserName=PMTCProperties.getProperty("FAS_ACCESS_USER_NAME");"FAS fasAccessUserName : " + fasAccessUserName);
String fasAccessPassword=PMTCProperties.getProperty("FAS_ACCESS_USER_PASSWORD");"FAS fasAccessPassword : " + fasAccessPassword);
//prop.put(Context.INITIAL_CONTEXT_FACTORY, initialCtx);
//prop.put(Context.PROVIDER_URL, providerURL);
//Context ctx = new InitialContext(prop);

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, initialCtx);
env.put(Context.PROVIDER_URL, providerURL);"Exiting :" + location);
return new InitialContext(env);

public void init( Context ctx, final String queueName)
throws NamingException, JMSException ,Exception

qconFactory = (QueueConnectionFactory) ctx.lookup(PMTCProperties.getProperty("FAS_JMS_FACTORY"));
log.debug(" FAS qconFactory==="+qconFactory);

qcon = qconFactory.createQueueConnection();
log.debug(" FAS queue connection==="+qcon);
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
log.debug(" FAS queue qsession==="+qsession);
queuereceive = (Queue) ctx.lookup(queueName);
log.debug(" FAS queue queuereceive==="+queuereceive);
qsender = qsession.createSender(queuereceive);
log.debug(" FAS queue qsender==="+qsender);
msg = qsession.createTextMessage();
qcon.start();"Exiting :" + location);

I am getting the error after line
log.debug(" FAS queue connection==="+qcon);

I will greateful to you if you help me to resolve this problem

It's feeding time! Give me the food you were going to give to this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic