I find it difficult to understand the JNDI part of the following JMS example.
public static void main(String[] args) { try {
In the book where I gave this example, the setting was not mentioned to make this JNDI search possible. For example, in
ConnectionFactory connectionFactory = (ConnectionFactory) jndiContext.lookup("jms/javaee7/ConnectionFactory");
should there be some kind of server running so jndiContext can get the ConnectionFactory object? In general, what setting is needed to find the JNDI above to work?
Thank you very much.
source share