« Return to Thread: Who can give me a mule jms example?

Re: Who can give me a mule jms example?

by stock3745 :: Rate this Message:

Reply to Author | View in Thread

Hi,
to use the jms,u need to config sth.
1) the brokerURL
2) the endPoint
 
The code is shown below:
======
<!--JMS connector -->
 <jms:activemq-connector name="jmsConnector"
  brokerURL="tcp://localhost:61616" connectionFactoryJndiName="activeMqConnectionFactory" />
 
<endpoint name="SwsSam" address="jms://com.sws.sam" />
=======
 
then u can use it like other endpoint.
for instance:
====
 
<model name="resulting">
<service name="jms">
   <inbound>
    <inbound-endpoint ref="SwsSam" />
   </inbound>
   <component class="com.sws.ws.log.Logger"></component>
   <outbound>
    <pass-through-router>
     <stdio:outbound-endpoint system="OUT" />
    </pass-through-router>
   </outbound>
  </service>
</model>
=======
 
This works in my studio,hopeful it wiill be helpful.
 
regards!
simen.

2009/7/2 zhang yijie <mule.user.relay@...>
Mule documents are so complex. I can't find a jms example for understanding. Please give me a whole example.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



 « Return to Thread: Who can give me a mule jms example?