On 8/8/07, Anshuk Chinmoy Pal Chaudhuri <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am trying to connect jms consumer endpoint (using xbean service units)
> to websphere mq directly.
>
> Can anyone let me know whether it is feasible and if it is what would
> configuration in the xbean be like (what would be values of the bold
> ones) and what else details do we need to mention as like the queue
> manager, which server ip where websphere mq is hosted, etc.?
>
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0";
> xmlns:test="http://my.org/";>
>
>
>     <jms:endpoint service="test:MyMQService"
>                     endpoint="mq"
>                     targetService="test:testService"
>                     targetEndpoint=" testService "
>                     role="consumer"
>                     destinationStyle="queue"
>                     jmsProviderDestinationName=" "
>                     jndiConnectionFactoryName=" "
>                     defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                         />
> </beans>
>
>
> I need to integrate servicemix 3.1 with websphere mq 6.0.
> I would need a listener Can any anyone provide the

You need to set up a connection factory for WebsphereMQ. Below is an
example of this using the MQQueueConnectionFactory:

<bean id="connectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
      <property name="transportType">
          <util:constant
static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" />
      </property>
      <property name="queueManager" value="foo.queue.mgr" />
      <property name="hostName" value="hostname" />
      <property name="channel" value="channelname" />
      <property name="port" value="12345" />
</bean>

And then just point the jms:endpoint at the bean above whose name is
connectionFactory:

 <jms:endpoint service="test:MyMQService"
                   endpoint="mq"
                   targetService="test:testService"
                   targetEndpoint=" testService "
                   role="consumer"
                   destinationStyle="queue"
                   jmsProviderDestinationName="FOO.BAR "
                   connectionFactory="#connectionFactory"
                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; />

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Reply via email to