I switched our DMI datasource to be lookupStyle="factory" with hopes of reducing object creation on the server side. I thought that using the factory style would cause the server side code to make a "static" call into the factory to get the datasource instance.
This would be exactly what we wanted since our datasources are basically singletons since they contain no state and 1 instance of each datasource can server all the client requests.
Turns out the factory style does not call a static method but rather creates an instance of the factory to call a the create method on. So even with "factory" the server is creating a new factory object every time.
Any suggestions on how to prevent all this object creation (which in our case is not needed at all)?
Thanks
This would be exactly what we wanted since our datasources are basically singletons since they contain no state and 1 instance of each datasource can server all the client requests.
Turns out the factory style does not call a static method but rather creates an instance of the factory to call a the create method on. So even with "factory" the server is creating a new factory object every time.
Any suggestions on how to prevent all this object creation (which in our case is not needed at all)?
Thanks
Comment