package pddemo;

import com.ibm.aglet.*;

public class CreationExample extends Aglet {

   public void run() {
      print("STARTING");
      print("Creating the child...");
      try {
      	 getAgletContext().createAglet(null, "pddemo.CreationChild", getProxy());
         print("Finished creating the child.");
      } catch (Exception e) {
         print("Failed to create the child.");
         print(e.getMessage());
      }
   }

   private void print(String s) { System.out.println("(parent): " + s); }
}
