开发者

I can't get JMS example work with Eclipse

开发者 https://www.devze.com 2023-01-24 21:21 出处:网络
I\'m using Eclipse and when I try to build the JMS example included in j2ee tutorial, it return a NullPo开发者_如何学CinterException at this: connection = connectionFactory.createConnection(); (I used

I'm using Eclipse and when I try to build the JMS example included in j2ee tutorial, it return a NullPo开发者_如何学CinterException at this: connection = connectionFactory.createConnection(); (I used the annotation @Resource(lookup = "jms/ConnectionFactory"), if I use jndi, it works fine). This example worked with in Netbeans. Can anyone help me to get it work with Eclipse?

P.S. Sorry for my bad English :(

0

精彩评论

暂无评论...
验证码 换一张
取 消