File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Spring JMS and Websphere 7 with Default JMS provider (SIB) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Spring JMS and Websphere 7 with Default JMS provider (SIB)" Watch "Spring JMS and Websphere 7 with Default JMS provider (SIB)" New topic

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

sudeep narayana

Joined: May 31, 2009
Posts: 5

<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

It is sorta covered in the JavaRanch Style Guide.
subject: Spring JMS and Websphere 7 with Default JMS provider (SIB)