Hi
I have started from scratch and I found out that whenever I added the
<jms:provider service="test:destination" endpoint="jms">, I got the
following errors:
======================================================
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type
[weblogic.jms.client.JMSConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type [weblogic.jms.client.JMSConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': no matching
editors or conversion strategy found
at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1126)
================================================================
Here is my full xbean.xml
======================================================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:test="http://test"
xmlns:amq="http://activemq.org/config/1.0"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- START SNIPPET: provider -->
<jms:endpoint service="test:MyProviderService"
endpoint="myProvider"
role="provider"
destinationStyle="queue"
jmsProviderDestinationName="queue/A"
connectionFactory="#connectionFactory"
wsdlResource="classpath:provider.wsdl" />
<!-- END SNIPPET: provider -->
<jms:endpoint service="test:MySoapProviderService"
endpoint="myProvider"
role="provider"
destinationStyle="queue"
jmsProviderDestinationName="queue/A/Soap"
connectionFactory="#connectionFactory"
soap="true"/>
<amq:connectionFactory id="connectionFactory"
brokerURL="tcp://localhost:61616" />
<bean id="weblogicTemplate"
class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">
weblogic.jndi.WLInitialContextFactory
</prop>
<prop key="java.naming.provider.url">
t3://hpiaapp1:27978
</prop>
</props>
</property>
</bean>
<!-- JMS ConnectionFactory from JNDI -->
<bean id="JmsconnectionFactory"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="weblogicTemplate" />
<property name="jndiName"
value="com/mdsi/port/paJms/queueConnectionFactory" />
</bean>
<bean id="jmsDestinationResolver"
class="org.springframework.jms.support.destination.JndiDestinationResolver">
<property name="jndiTemplate">
<ref bean="weblogicTemplate" />
</property>
<property name="cache">
<value>true</value>
</property>
</bean>
<jms:provider service="test:destination" endpoint="jms"
destinationName="com.mdsi.port.paJms.DefaultCIS0.InboundQueue"
connectionFactory="#JmsconnectionFactory"
destinationResolver="#jmsDestinationResolver" />
</beans>
======================================================
If I remove it, I don't get this error, but of course I need it in order to
send message.
I have done a google search and the only suggested solution is that there
may be 2 different versions of weblogic.jar, but I have checked my system
and I only have one version.
Any helps?
Thanks
--
View this message in context:
http://www.nabble.com/ServiceMix-3.2.2-and-JMS-queue-in-Weblogic-server-tp20159390p20236900.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.