The question that comes to mind is what are you trying to achieve by doing so. Why not include the processing you plan for "otherHandler" and "logger", for example, within "handler"?
Erik ----- Original Message ---- From: "kc9...@kc9ddi.us" <kc9...@kc9ddi.us> To: hl7api-devel@lists.sourceforge.net Sent: Sun, December 12, 2010 7:53:07 AM Subject: [HAPI-devel] Processing a Single Message Multiple Times Hello - I'm working on a simple Java app with HAPI, mainly just for personal interest at this point. I'm starting with the SendAndReceiveAMessage example as a starting point (http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html) What I'd like to be able to do is modify it to allow register multiple applications to handle a single type of message. Eg: server.registerApplication("ADT", "A01", handler); server.registerApplication("ADT", "A01", otherHandler); server.registerApplication("ADT", "A01", logger); ... When I do this now, it looks like only the very last application that matches a given message type is used to parse that message. I'd like to be able to have the message send and processed by *each* of the applicable registered applications. Can anyone recommend a way to do this? Thanks! ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel