aspose file tools*
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 Spring in Action this week in the Spring 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
Author

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

sudeep narayana
Greenhorn

Joined: May 31, 2009
Posts: 5
Config:

<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:connectionFactory-ref="jmsConnectionFactory"
p:defaultDestination-ref="destination" />


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

Error:

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 [com.ibm.ws.sib.api.jms.impl.JmsManagedQueueConnectionFactoryImpl@b75a9374]; nested exception is java.
lang.IllegalArgumentException: object is not an instance of declaring class
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:326)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at $Proxy46.createConnection(Unknown Source)
at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:526)

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring JMS and Websphere 7 with Default JMS provider (SIB)