Is there a way to have a script open a socket and reference the socket in other scripts?
For example, can I create a java socket connection on Gateway startup? Reference the socket connection in a timer script or data change script?
The application involves reading and writing data out of a several socket connections continuously. The data from the socket will be parsed and stored in a database. I’ve been able to read and write data from a socket in a script but I can figure out how to use the open socket again the next time the script runs. In other words, when the script is done running the object is dead. Which means I’d have to open and close a socket connection every time the script runs. This would be very inefficient.
Any advice would be appreciated.