Hi , I find when I close the socket in order to stop the HL7Server,it catch
the exception as follows:

 (0 ms) [Thread-6] ERROR:
ca.uhn.hl7v2.protocol.impl.ServerSocketStreamSource$Acc
eptor#error : Error accepting remote connection
java.net.SocketException: socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        at java.net.ServerSocket.implAccept(ServerSocket.java:453)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at
ca.uhn.hl7v2.protocol.impl.ServerSocketStreamSource$Acceptor$1.run(Se
rverSocketStreamSource.java:115)
        at java.lang.Thread.run(Thread.java:619)
.................

But if I don't close the socket, when I stop the HL7Server by calling
hl7server.stop() method, it can still work because the HL7Server is waiting
for accepting next connection.

It seems dilemma to me...  What should I do?

Thanks in advance! Any help is appreciative.

-----
Just Do It !
-- 
View this message in context: 
http://www.nabble.com/How-can-I-stop-HL7Server---I-start-it-in-a-new-thread%2Cbut-I-can-not-stop-it.-tp24365555p25233527.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to