Results 1 to 1 of 1

Thread: Trying to resolve a WebMethods JMS endpoint defined in JNDI

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Default 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 at 10:10 AM. Reason: Correct a misspelling.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •