How to maintain a persistent connection to QuickBooks via the 4D Connector for QuickBooks application?
A persistent connection to QuickBooks can be opened using the OpenQBConnection method. This will do one of two things:
- If a URL is not specified in the QBConnectionString, the component will open a persistent connection to QuickBooks. The connection can only be used by that instance of the object.
- If a URL is specified in the QBConnectionString, the component instructs the 4D Connector to open a persistent connection to QuickBooks. Multiple instances of the components can pass through the 4D Connector using the 4D Connector’s persistent connection. The 4D Connector’s connection is maintained until a call to CloseQBConnection is made by any of the components using the 4D Connector, or the 4D Connector application is terminated.