From: Sara F. <sar...@gm...> - 2014-06-23 15:53:06
|
Hi Christian Thank you. I understand that I need to change the host and port as per the PAMSimulator specification. However in the below lines of code, SimpleServer server = new SimpleServer(port, llp, parser); > Application handler = new ExampleReceiverApplication(); > server.registerApplication("ADT", "A01", handler); it is creating an ExampleReceiverApplication, but I need to set the receiving application as PAMSimulator. How can I do this? Regards Sara Fatima On Mon, Jun 23, 2014 at 8:24 PM, Christian Ohr <chr...@gm...> wrote: > // A connection object represents a socket attached to an HL7 server > Connection connection = connectionHub > .attach("localhost", port, new PipeParser(), MinLowerLayerProtocol.class); > > Just attach the connection to the Gazelle host and port instead of localhost. > > Christian > > > > 2014-06-23 11:30 GMT+02:00 Sara Fatima <sar...@gm...>: > >> Hi all, >> >> I am trying to send HL7 message to PAMSimulator >> <http://gazelle.ihe.net/PatientManager/pdc/PDC.seam?cid=4835#>. I need >> to do this over MLLP. I was trying this >> <https://svn.code.sf.net/p/hl7api/code/branches/RELEASE_1_0/hapi-mvn/hapi-examples/src/main/java/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.java> example, >> but here the example is creating an example server to send the message. I >> do not intent to do this, as I am sending to the PAMSimulator server. I am >> looking to provide the port and the host of the server and send the >> message. How can I do this? Is there any sample code for this type? >> >> Thanks & Regards >> Sara Fatima >> >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > |