Is it possible to register more than one @OnServer Function Interface? When we enable more than one Function with @OnServer for Client side proxy, the server fails to start with below error.
Cannot resolve reference to bean 'org.springframework.data.gemfire.function.execution.GemfireOnServerFunctionTemplate#0' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.data.gemfire.function.execution.GemfireOnServerFunctionTemplate#0': Cannot resolve reference to bean 'gemfireCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gemfireCache': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: A connection to a distributed system already exists in this VM. It has the following configuration:
The gemfire functions are placed in a package and below is added to the appContext for component-scanning.
<gfe-data:function-executions base-package="com.test.data.gemfire"/>
Is there a standard practice to register only 1 OnServer function (which sounds too restrictive)? Any pointers would be helpful.