Announcement Announcement Module
Collapse
No announcement yet.
Trying to resolve a WebMethods JMS endpoint defined in JNDI Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to resolve a WebMethods JMS endpoint defined in JNDI

    I'm trying to configure a Camel endpoint that resolves to a WebMethods JMS queue. This is in my Spring context:

    Code:
        <bean id="jmsConfig" class="org.apache.camel.component.jms.JmsComponent">
            <property name="configuration" ref="jmsConfig"/>
        </bean>
    
        <bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration">
            <property name="connectionFactory" ref="connectionFactory"/>
            <property name="destinationResolver" ref="destinationResolver"/>
        </bean>
    
        <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
            <property name="jndiName" value="ConnectionFactoryName"/>
            <property name="jndiTemplate" ref="jndiTemplate"/>
        </bean>
    
        <bean id="destinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
            <property name="jndiTemplate" ref="jndiTemplate"/>
        </bean>
    
        <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
            <property name="environment">
                <props>
                   <prop key="java.naming.factory.initial">com.webmethods.jms.naming.WmJmsNamingCtxFactory</prop>
                   <prop key="java.naming.provider.url">${queue.url}</prop>
                </props>
            </property>
        </bean>
    When I start the application, I get a "ConversionNotSupportedException: Failed to convert property value of type 'COM.activesw.api.client.BrokerEvent' to required type 'javax.jms.ConnectionFactory' for property 'connectionFactory'."

    I'd appreciate any help.
    Last edited by connecticut; Sep 26th, 2011, 10:10 AM. Reason: Correct a misspelling.
Working...
X