Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Loan Broker example

You can also read this article by Mohan Vamsi which describes this example:
Implement two-way communication among ESB components

...

...

...

You can use a PHP Stomp client to test this example...

  1. Patch examples/loan-broker/src/components/loanbroker/LoanBroker.java with the patch below to allow String parameters
  2. Configure activemq.xml to have a <transportConnector uri="stomp://localhost:61626"/>
  3. Run: ant setup as per the README.txt
  4. Run: ../../bin/servicemix servicemix.xml (as per the README.txt)
  5. Download Dejan Bosanac's extended Stomp PHP library from: http://www.nighttale.net/download/stomp.zip
  6. Copy Stomp.php and JSON.php to an appropriate location
  7. Put the following PHP code into LoanBrokerTest.php
  8. Run: php LoanBrokerTest.php (sample response message output shown below)

...

Building on steps 1-4 from above and using a Perl client...

  1. Download Net-Stomp Perl module from: http://search.cpan.org/dist/Net-Stomp/
  2. Download Class-Accessor module from: http://search.cpan.org/~kasei/Class-Accessor-0.30/
  3. Make the libraries and copy to an appropriate location
  4. Put the following Perl code into LoanBrokerTest.pl
  5. Run: perl LoanBrokerTest.pl (sample response output below)

...