Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't create connection to JBoss MQ using Spring JMS

 
Will Lee
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Spring Jms from Spring2.5.6, My JBoss server is 4.2.3. Here's the configure file


My testing code failed on jmsTemplate.convertAndSend, the reason is can't open connection:

java.lang.AbstractMethodError: org.jboss.mq.SpyConnectionFactory.createConnection()Ljavax/jms/Connection;
at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)
at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:617)
....


The same JNDI context configuration worked when using Java JMS codes. Therefore I know JBoss is running well.

Any suggestion? Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic