Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[edt-dev] You picked up the latest build and your IBMi proxy functions have errors - Read this

When implementing Bugzilla enhancement 378384 we normalized how a default connect is defined. The @Resource annotation defines a connection obtained from the egldd. It can now can be used on a proxy function instead of connectionResourceBindingURI to define the default connection.

So if you have something like:
       function test1(char20 string inout){
                @IBMiProgram {
                        programName = "/QSYS.LIB/TSTSRVPGM.LIB/EDTPRIMSRV",
                        connectionResourceBindingURI = "binding:file:thirdparty_programs#conn1",
                        parameterAnnotations = [@StructText{length = 20}]
                }
        }
Change the connectionResourceBindingURI  to @Resource like:
        function test1(char20 string inout){
                @Resource{uri="binding:file:thirdparty_programs#conn1"},
                @IBMiProgram {
                        programName = "/QSYS.LIB/TSTSRVPGM.LIB/EDTPRIMSRV",
                        parameterAnnotations = [@StructText{length = 20}]
                }
        }

regards,
Joe Vincens
EGL Developer
Rational Software, IBM Software Group
150 Kettletown Road, Southbury, CT  06488, USA

Back to the top