Hi,
ServiceMix uses ActiveMQ as default JMS provider but it doesn't mean that you
have to use ActiveMQ.
ActiveMQ can interact with other JMS provider such as Websphere MQ.
In your case, you need to use an OpenMQ ConnectionFactory.
For example, you can make a consumer endpoint like this:
<jms:consumer service="your:service" endpoint="OpenMQConsumer"
destinationName="your.queue"
connectionFactory="#openMQ"/>
<bean name="openMQ"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="TopicConnectionFactory"
/>
<property name="jndiEnvironment">
<props>
<prop
key="java.naming.factory.initial">com.sun.jndi.fscontext.RefFSContextFactory</spring:prop>
<prop
key="java.naming.provider.url">/tmp/TestMQ</spring:prop>
</props>
</property>
</bean>
Regards
JB
On Tue 04/05/10 07:56, "dongmeic" [email protected] wrote:
>
> Hi,
>
> I'm new to ServiceMix. I have a question on how to consume and produce
> messages from/to OpenMQ. ServiceMix is integrated with ActiveMQ. How do
> I
make it work with OpenMQ? Is it possible?
>
> Thanks in advance for any help!
>
> dongmeic
> --
> View this message in context:
> http://old.nabble.com/How-to-consume-provide-messages-to-OpenMQ
> -tp28443359p28443359.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
>
>