Hi,I split the Hapi example "Sending and Receiving A Message" into two
parts-the server and the client.
The server receives the message from clent and make a response "ACK" message
to the client.
I want to know how to save the message which sent from the clent ?
I want to save the message into a text file. Thank you !

the server code (the part of the Hapi example)is as follows:
public static void main(String[] args){
        LowerLayerProtocol llp = LowerLayerProtocol.makeLLP(); // The
transport protocol
        GenericParser genericparser = new GenericParser(); // The message
parser
        SimpleServer server = new SimpleServer(port, llp, genericparser);
        Application handler = new AcceptApplication();
        server.registerApplication("*", "*", handler);
        server.start(); 
     //what should I do after that ? How can I save the message which sent
from the client into a text file?
}
Thanks!
        :-)

-----
Just Do It !
-- 
View this message in context: 
http://www.nabble.com/How-can-I-get-the-message-in-the-server-which-sent-from-the-client---tp23269394p23269394.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to