infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
batch processing a msg file and xmitting via tcpip
System
Originally posted by Noel Field
i have a thread that will write messages to a file. Once a day, i want to be able to transmit the messages in the file out via tcpip. Not sure how to do this.
any help would be greatly appreciated .
Find more posts tagged with
Clovertech
Comments
Jerry Tilsley
Use a Fileset-Local connection to pickup the file on a schedule, then transmit to outbound connection that is tcpip.
Jim Kosloskey
Just be aware you could have issues if the file is being written to when you try to read it.
Jerry Tilsley
Because of what Jim has mentioned, I generally do not use spool files anymore. Normally I write everything to a SQLite database with an is_sent flag. This way if something is being writting to it at the same time that things are being pulled there is no loss of data.
Otherwise you need to pause writing to the spool file until after adequate time has been allowed for retrieving it, this is where the scheduling features come in handy for the inbound thread, you will just have to write a tcl proc or something to pause the ob thread that writes to the spool file during that time.
Russ Ross
To solve the probelm of writing to a spool file while reading from it we:
- temporarily shutdown the writing thread.
- move the spool file to a load directory that gets read by fileset-local read thread but isn't used by the writing thread.
- restart the writing thread to generate a new clean spool file for later on when the next batch needs to be sent.
- start the fileset-local thread that has message throttlling set to the desired level of message consumption.
- now the read and write threads are running simultaneously without stepping on each other.