You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by martin <m....@science-computing.de> on 2012/08/17 10:00:05 UTC
Re: [OSGi] JmsComponent config for WebSphere Queue ?
Hello,
I managed to realize a connection to the SIBus on WebSphere. The problem is
related to package exports / imports in the osgi environment. The Spring
JNDI beans are not able to create the initialcontextfactory.
This is the osgi blueprint configuration for the jmscomponent:
<bean id="wasmq"
class="org.apache.camel.component.jms.JmsComponent">
<property name="configuration" ref="jmsConf" />
<property name="destinationResolver" ref="jmsDestResolver" />
</bean>
<bean id="jmsDestResolver"
class="org.springframework.jms.support.destination.DynamicDestinationResolver">
</bean>
<bean id="jmsConf"
class="org.apache.camel.component.jms.JmsConfiguration" >
<property name="connectionFactory" ref="cfFactory" />
</bean>
<bean id="cfFactory" factory-ref="icBean" factory-method="lookup" >
<argument value="jms/testConnectionFactory01" />
</bean>
<bean id="cfBean"
class="com.ibm.websphere.naming.WsnInitialContextFactory" />
<bean id="icBean" factory-ref="cfBean"
factory-method="getInitialContext" >
<argument>
<props>
<prop key="java.naming.factory.initial"
value="com.ibm.websphere.naming.WsnInitialContextFactory" />
<prop key="java.naming.provider.url"
value="iiop://localhost:9001/" />
</props>
</argument>
</bean>
--
View this message in context: http://camel.465427.n5.nabble.com/OSGi-JmsComponent-config-for-WebSphere-Queue-tp3380989p5717585.html
Sent from the Camel - Users mailing list archive at Nabble.com.