I think you are about to make an error in your initial design - if you more
or less think of a key/value map with the registerApplication call, the
behaviour you experience makes a lot of sense. Since you want all three
handlers to react on the A01 message type why not handle all this inside the
your own A01 handler and customize that instead?

On 12 December 2010 14:53, <[email protected]> wrote:

> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>



-- 

Med venlig hilsen / Kind regards

*Jens Kristian Villadsen*
cand.polyt

Kantorvænget nr. 161
8240 Risskov
Denmark

Mobile +4523373806
[email protected]
http://jkiddo.is-a-geek.com
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to