This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Spring JMS and Websphere 7 with Default JMS provider (SIB)
It's not a secret anymore!