Trail map Introduction Installation Content About the Sample Application Deploying the Sample Application Atomic Transactions Business Activities Sample Application Source Code Where next? Navigation Start Trailmap Previous Next
| print this page
| email this page
Source code overview You can begin experimenting with the XML Transaction component of ATS 4.1 by editing the sample application source code, which is heavily commented to assist your understanding. The source code can be found in the <ats 4.1 install>/wst/demo/src directory. It is structured as follows: com/arjuna/xts/nightout/clients/ jboss/BasicClient.java: A servlet that processes the form input and runs either an Atomic Transaction or Business Activity to make the bookings. This servlet uses the JBoss JAX-RPC implementation as the SOAP transport library. jboss/restaurant/* : JBoss JAX-RPC client interfaces for accessing the restaurant web services. jboss/taxi/* : JBoss JAX-RPC client interfaces for accessing the taxi web services. jboss/theatre/* : JBoss JAX-RPC client interfaces for accessing the theatre web services. weblogic/BasicClient.java: A servlet that processes the form input and runs either an Atomic Transaction or Business Activity to make the bookings. This servlet uses the WebLogic JAX-RPC implementation as the SOAP transport library. weblogic/proxies/* : WebLogic JAX-RPC client side code for accessing the Web services. This is automatically generated code. webmethods/BasicClient.java: A servlet that processes the form input and runs either an Atomic Transaction or Business Activity to make the bookings. com/arjuna/xts/nightout/services/[Restuarant|Taxi|Theatre]/ Each of these three Web services has similar structure, featuring a *Manager.java class (the transactional business logic, knowing nothing of Web services), a *View.java file (the GUI component, largely tool generated), and the files that expose the business logic as transactional Web services. In the filenames, AT denotes Atomic Transaction, whilst BA is for Business Activities. The *Service.java file is the business interface, whilst the *Participant.java file has the transaction management code.
Copyright 2002-2005 Arjuna Technologies All Rights Reserved. info@arjuna.com +44 191 243 0676