Versions Compared

Key

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

...

2. Create two database instances to point to sample databases created according to the synapse configuration defined above. Refer the "Sample Setup Guide" to see how you can set up the derby database server.

3. Create two XA data sources in your environment, which the two instances created in step 2 can use. For instructions to create data sources, refer to section Data Sources.

 

14. Start the ESB with the synapse configuration numbered 267, by running the following command.

...

For more information on starting ESB with different synapse configurations, refer to section Starting Sample ESB Configurations.

25. A message should appear in the command or text Linux console stating the server started successfully.

 

46. Deploy the back-end service SimpleStockQuoteService and start the Axis2 server using the instructions given in section Starting Sample Back-End Services.

...

Now you have a running ESB instance, databases and a back-end service deployed.

...

We run this setup using the sample Stock Quote Client which can operate in several modes. For instructions on this sample client and its operation modes, refer to Stock Quote Client.

 

In this sample a record is delete from one database and it is added into the second database. If either of the operations(deleting from the first database and adding into the second database) fails everything will be roll backed. The records will be untouched.

Invoke the client as followsExecute the following command to invoke the client.

Code Block
ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN/

In this sample, a record is delete from one database and added to a second database. If either of the operations (deleting from the first database and adding to the other) fails, all operations will roll back. The records will be untouched.

Excerpt
hiddentrue

The distributed transaction management example.