Package ca.uhn.hl7v2.app

Examples of ca.uhn.hl7v2.app.ConnectionHub.discard()


        } catch (IOException e) {
            System.out.println("Error : " + e);
        }

        // Close the connection and server
        connectionHub.discard(connection);
    }

    public static void main(String[] args) throws HL7Exception {
        String host = System.getProperty("hl7-host");
        String port = System.getProperty("hl7-port");
View Full Code Here


        /*
         * MSH|^~\&|||||20070218200627.515-0500||ACK|54|P|2.2 MSA|AA|12345
         */

        // Close the connection and server
        connectionHub.discard(connection);
        server.stop();

    }

}
View Full Code Here

        System.out.println("Didn't send out this message!");
        e.printStackTrace();
       
        // Since we failed, return the connection to the ConnectionHub so that it can
        // discard it, and make sure we're going to create a new one next time around
        connectionHub.discard(conn);
        conn = null;
        continue;
      }
     
      System.out.println("Sent message. Response was " + response.encode());
View Full Code Here

         *
         * See
         * http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendLotsOfMessages.html
         * for an example of this.
         */
        connectionHub.discard(connection);
       
        // Stop the receiving server and client
        server.stopAndWait();
        ConnectionHub.shutdown();

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.