Re: [HAPI-devel] Send message to PAMSimulator

2014-06-23 Thread Sara Fatima
Hi Christian, Thank you. Now I have omitted the Application, and I have set the host and port as per the PAMSimulator specifications. Now I am working with the below code snippet to send the message. However I am getting UndeclaredThrowableException. int port = 10010; // The port to listen on >

Re: [HAPI-devel] Send message to PAMSimulator

2014-06-23 Thread Christian Ohr
The PAMSimulator at gazelle.ihe.net is your server and will receive your requests. You simply don't need an Application, because this is part of the server-side API of HAPI. You only need the client (i.e. ConnectionHub etc.). Or am I misunderstanding you? Christian 2014-06-23 17:52 GMT+02:00 Sa

Re: [HAPI-devel] Send message to PAMSimulator

2014-06-23 Thread Sara Fatima
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

Re: [HAPI-devel] Send message to PAMSimulator

2014-06-23 Thread Christian Ohr
// 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. Chris