What you're describing is a Server not a Client. What you probably want is HL7Service, by using HapiContext.newServer()
For example usage see http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html -- Christopher Speck > On Apr 20, 2017, at 3:56 PM, Lucila Armentano <armentanoluc...@gmail.com> > wrote: > > Hello, > I need to create a TCP Client for connecting to a server that automatically > sends Messages (ORU). > I couldn't do this by using de newClient() method of HapiContext, because it > only receives messages after sending one. > > Is it possibly to create a client with a "Receiver" or some object that > stablish a client connection and waits a message from the server? > > Thanks a lot > > > Lucila > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! > http://sdm.link/slashdot_______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel