Package org.jboss.remoting.samples.transporter.complex

Examples of org.jboss.remoting.samples.transporter.complex.Doctor


   {
      // get the patient's ailment type and look for doctor that specializes
      String ailmentType = patient.getAilmentType();

      Information info = Information.getInstance();
      Doctor doc = info.getProviderBySpecialty(ailmentType);
      if(doc != null)
      {
         doc.addPatient(patient);
         return doc;
      }
      else
      {
         throw new NoDoctorAvailableException("No doctor available for ailment '" + ailmentType + "'");
View Full Code Here


      try
      {
         // find a doctor that can help our patient.  Note, if none found, will throw an exception
         System.out.println("*** Looking for doctor that can help our patient...\n");
         Doctor doctor = providerProcessor.findDoctor(patient);

         // notice that list of patients now includes our patient, Bill Gates
         System.out.println("*** Found doctor for our patient.  Doctor found is:\n" + doctor);

         // assign doctor as patient's doctor
View Full Code Here

/*    */
/* 47 */     ProviderInterface providerProcessor = (ProviderInterface)TransporterClient.createTransporterClient(this.locatorURI, ProviderInterface.class);
/*    */     try
/*    */     {
/* 53 */       System.out.println("*** Looking for doctor that can help our patient...\n");
/* 54 */       Doctor doctor = providerProcessor.findDoctor(patient);
/*    */
/* 57 */       System.out.println("*** Found doctor for our patient.  Doctor found is:\n" + doctor);
/*    */
/* 60 */       patient.setDoctor(doctor);
/* 61 */       System.out.println("*** Set doctor as patient's doctor.  Patient info is now:\n" + patient);
View Full Code Here

TOP

Related Classes of org.jboss.remoting.samples.transporter.complex.Doctor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.