Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you copy a file into the poller's target directory now, it will also be moved into the sender's directory, just as before. However, there should also be a copy of the message in our JMS queue. To check this, connect to ServiceMix using a JMX console (refer back to our previous tutorial if you need help doing this) and navigate the MBean tree to org.apache.activemq/localhost/Queues. A queue should have been auto-created with the name queue/tutorial and the EnqueueCount attribute is showing the number of messages that have already been sent (in our case: 1).
Image Added

Things to remember

  • More advanced Maven archetypes already create a sample xbean.xml file and add the necessary JBI component dependency to the pom.xml
  • Adding SU to an existing SA is as simple as adding <dependency/>s to the SA's pom.xml
  • To update a service assembly already deployed on servicemix, you need to use the mvn jbi:projectDeploy -DforceUpdate=true command

Further reading

  • servicemix-jms provides more information on the configuration options we used for tutorial-jms-su
  • servicemix-eip gives you more details about the wire tap EIP, as well as all the other patterns that are supported by ServiceMix