I just discovered that a client application can set the socket timeout
indirectly through method Initiator.setTimeoutMillis() (see
http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/app/Initiator.html).
 For those unaware, the client application retrieves an Initiator from its
Connection and uses the Initiator to send HL7 messages to a server.  See
http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html
for
an example that uses Initiator.

Derek

On Thu, Jul 26, 2012 at 12:16 PM, Derek Mahar <derek.ma...@intelerad.com>wrote:

> What is approach do you recommend to set the ConnectionFactory socket
> timeout?  According to
> https://hl7api.svn.sourceforge.net/svnroot/hl7api/trunk/hapi-mvn/hapi-base/src/main/java/ca/uhn/hl7v2/app/ConnectionFactory.java,
>  ConnectionFactory.createSocket()
> does not set the socket timeout, but states that configuration could set
> this value.  Must our application provide a custom SocketFactory that sets
> the default timeout according to some configured value in the application?
>
> Thank you,
>
> Derek
>

-- 
Derek Mahar
Senior Software Developer
Intelerad Medical Systems Incorporated
895 de la Gauchetiere W. Suite 400
Montreal, QC, Canada, H3B 4G1
Tel: 514.931.6222 x7754
Fax: 514.931.4653
derek.ma...@intelerad.com
www.intelerad.com

-- 

This email or any attachments may contain confidential or legally 
privileged information intended for the sole use of the addressees. Any 
use, redistribution, disclosure, or reproduction of this information, 
except as intended, is prohibited. If you received this email in error, 
please notify the sender and remove all copies of the message, including 
any attachments.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to