Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of jndi.properties in JMS using JBoss  RSS feed

 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I wrote a simple JMS QueueSender program. Here I found out that we have to write the following lines :



First please tell me the significance of these lines. Without these lines the program gives an exception. Also when I write these lines in jndi.properties file and place it in classpath then it doesn't recognizes the properties file and gives an exception. Also if i comment line 2 in the properties then it also works fine. SO what exactly is the significance of lines 1 and 2.


Also do we have to create QueueConnectionFactory ourselves or it is provided by JBoss.



Please clear my doubts. Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!