import org.apache.tuscany.sca.node.SCANodeFactory;
public class FullAppLauncher {
public static void main(String[] args) throws Exception {
SCANode node =
SCANodeFactory.newInstance().createSCANode(null,
locate("common"),
locate("currency"),
locate("hotel"),
locate("flight"),
locate("car"),
locate("trip"),
locate("tripbooking"),
locate("travelcatalog"),
//locate("payment-java-policy"),
locate("payment-spring-policy"),
locate("creditcard-payment-jaxb-policy"),
locate("shoppingcart"),
locate("scatours"),
locate("fullapp-ui"),
locate("fullapp-coordination"),
locate("fullapp-currency"),
locate("fullapp-packagedtrip"),
locate("fullapp-bespoketrip"),
locate("fullapp-shoppingcart"));
node.start();
System.out.println("Point your browser at - http://localhost:8080/scatours/ ");
System.out.println("Node started - Press enter to shutdown.");
try {
System.in.read();
} catch (IOException e) {
}
node.stop();
}