JNDI无法找到JMS ConnectionFactory

时间:2015-03-25 09:46:28

标签: java java-ee jms

我的应用程序正在Jboss 7.1中运行并尝试通过JNDI查找获取JMS ConnectionFactory,但出现错误 javax.naming.NameNotFoundException

Context ctx = new InitialContext();

// lookup the queue connection factory
ConnectionFactory connFactory = (ConnectionFactory) ctx.lookup("jms/RemoteConnectionFactory");

0 个答案:

没有答案