Hi,
I am developing a solution for the NHS in the UK. They use a standardised messaging system for sending Patient data to external systems.
This system is called HL7 and I had thought it sent the messages as text files that I could easily work with from Servoy.
However, it now turns out that the messages are sent via TCP to a Port Listener that Acknowledges receipt of the messages.
Is there a plugin or bean or anything that I can use, in a client, or preferably on Server in a batch processor or similar, that will do TCP listening?
I saw the UDP plugin, but I don’t think that will work, unless someone knows a way of getting it to work?
Otherwise, if someone know of a TCP listening program that will take the messages and pop them into the database, or even just a text file, I could use that in the middle?
Jan Blok:
Our embedded tomcat server is a (http) tcp listener…but this seems a strange question to me.
Thanks, but I have now found a specific product that does what I ned, which is to ‘listen’ & then save the incoming messages to a text file where I can pick them up and process them.
Now I just need to write a method that will loop through all the files in a directory, process each one, delete it and when finished, regularly poll the directory for more files coming in
I will be running this on the Servoy Server as a batch processor, I assume there shouldn’t be any issues with this?
Jan Blok:
batch processors work fine and can be used to do server side file processing, if that’s the question.
Yes, it was, thanks.
do you have handy any sample code for the main routine that will get a list of files in a directory and then loop thru them, deleting each one at end of loop?
I have a method that deals with the file (I was showing an open file dialog when testing, but would of course instead pass the file name to the method in the batch processor.