Re: [HAPI-devel] Hapi connection with existing server

2013-08-27 Thread king...@aol.com

Hi

Do you want to listen for more than one message in a single listener?

Try this.

Application handler = new ExampleReceiverApplication();
server.registerApplication("ADT", "A01", handler);
server.registerApplication("ADT", "A02", handler);

Hope it helps...

--
Sathish

On Friday 12 July 2013 03:36 PM, Bart?omiej Buczek wrote:

Hi,
I was following example send multiple messages out 
 
and found out something like this:


// Setup server to listen for incoming message
int port = 8813;
boolean useTls = false;
HapiContext context = new DefaultHapiContext();
HL7Service server = context.newServer(port, useTls);


// We want to listen ADT^A01 messages
ReceivingApplication handler = (ReceivingApplication) new 
ExampleReceiverApplication();

server.registerApplication("ADT", "A01", handler);

So I run the application and as far as I understand I have setup 
server and a client application which will listen for ADT^A01 
messages. Now I want to create another application (let's say another 
client) which will connect with that already created server and listen 
for ADT^A02 messages.


I found on documentation something like that:

"If you are wondering how to integrate HAPI into an existing server 
application, this is probably the place. Create a class that 
implements ReceivingApplication, then look at HL7Server and 
ApplicationRouter to see how to get HAPI to listen for messages on a 
socket and pass them to your ReceivingApplication."


But how should I use HL7Server and ApplicationRouter to connect with 
previously created server? Maybe I'm missing something in the logic 
but let's consider that one software already has running server and I 
want to integrate with them to listen for messages special for my 
application (like ADT^A02) - how to do this?



--
Bart?omiej Buczek
Phoenix Tecnologie Sp. z o.o.
ul. Wiosenna 14/2; 53-017 Wroc?aw, Poland
NIP: 899 258 73 59
Tel. +48 71 338 65 64; Kom. +48 668 891 540
Fax +48 71 338 65 55
[email protected]
phxtecno.com


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk


___
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk___
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


Re: [HAPI-devel] Fwd:

2014-03-18 Thread king...@aol.com
Dear all,

I apologize for the inconvenience caused by me. Actually My mail was 
hacked by some one and now it is under control.

--
Sathish

On Tuesday 18 March 2014 11:22 PM, Bob Gage wrote:
> If you cannot filter this spammer, please unsubscribe me immediately.
>
> -Original Message-
> From: Sathish kumar [mailto:[email protected]]
> Sent: Monday, March 17, 2014 3:16 PM
> To: [email protected]; [email protected]
> Subject: [HAPI-devel] Fwd:
>
> Hallo! http://www.unitedco-online.com/were.you.looking.for?jhihuhu302888
>
>
>
> --
> Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
> definitive new guide to graph databases and their applications. Written by 
> three acclaimed leaders in the field, this first edition is now available. 
> Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> ___
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
> --
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> ___
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel


-- 
Sathish


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel