Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring JMS and Websphere 7 with Default JMS provider (SIB)  RSS feed

sudeep narayana
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<jee:jndi-lookup id="jmsConnectionFactory" jndi-name="jms/XXX_Conn_Factory"
proxy-interface="javax.jms.QueueConnectionFactory" lookup-on-startup="false" cache="true"/>

<jee:jndi-lookup id="destination" jndi-name="jms/XXX_Queue"
lookup-on-startup="false" proxy-interface="javax.jms.Queue" cache="true"/>

<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"
p:defaultDestination-ref="destination" />

While running the client code after the satrt up i get the below errror


org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract javax.jms.Connection javax.jms.ConnectionFa
ctory.createConnection() throws javax.jms.JMSException] on target []; nested exception is java.
lang.IllegalArgumentException: object is not an instance of declaring class
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
at $Proxy46.createConnection(Unknown Source)
at org.springframework.jms.core.JmsTemplate.execute(
at org.springframework.jms.core.JmsTemplate.send(
at org.springframework.jms.core.JmsTemplate.send(

Options: I tried using the both cased of proxy-interface="javax.jms.QueueConnectionFactory" and proxy-interface="javax.jms.ConnectionFactory" but got the same error.

The error seems to simple case of class mismatch but i dont see any mistmacth from the jars i am using.

Any pointers will be helpful. thankyou

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!