Identifying data sources for custom stages
Many of the M3 and Infor e-Commerce database stages must use an existing M3 and SQL Server data source, respectively, as set up in the Infor e-Commerce Development Studio. As this data source is auto generated each time the application is generated, it is not feasible to hardwire the name into the custom stages.
The way to obtain a connection (SQL Server or M3) in custom stages is to add a parameter to the data source connections called customStageConnectKey. The value of this parameter must match a value hardwired into the custom stages.
This also enables you to have additional SQL and/or M3 data sources defined for your application while ensuring that the custom stages will always use the correct data source. You must ensure that you have exactly one data source of each type that includes the customStageConnectKey setting. Often, you will have just one of each type in your application.