Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connectionfactory not bound exception

 
Ranjani Sivaraman
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
im getting javax.naming.NameNotFoundException: connectionFactory not bound
im trying sample jms example from net..
I have configured my queue in hornetq-jms.xml in deploy/hornetq folder.
im using jboss-6.0.0.Final




exception thrown in this line from sender.java file
QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx. lookup("connectionFactory");

suggest why connectionfactory not bound error is coming???
Do i need to configure any other ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
QueueConnectionFactory connFactory = (QueueConnectionFactory) ctx. lookup("connectionFactory");


That should be:



P.S: Case is important too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic