Hi all;

Im new to HL7 technology, bear me if im wrong..

Currently i can send and receive auto ack/nack message  from client.

My client is like this;

Initiator initiator = connection.getInitiator();
        HL7Message sampleMessage = new HL7Message();

        //send
        Message response =
initiator.sendAndReceive(sampleMessage.getHL7Message());

My messageprocessor implements the 'Application' and it receives the
request from the client successfully and sending back the ack/nack
message. But i would like to control this from my application, where i
forward the request to an service endpoint and based on that service
endpoint's response i would like to send back an ACK message to the
client..

My processor is like;

public class HL7MessageProcessor implements Application {

 public Message processMessage(Message message) throws
ApplicationException, HL7Exception {

return handleHL7Result(hl7Msg);

}


handleHL7Result(hl7Msg){

//creates ack/nack message

return message

}

}

Is my assumption right?..how can i handle this? seems, my application
has to return a message soon after it received the request. After
sending the auto ack message, my other processes looks meaning
less..(ie: sending to a service endpoint , retrieving response etc..)

Can anybody help me on this? Any guide will be much appreciated


Thanks

-Ratha
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to