Home
Analytics
DEAPI: Platform object and right pattern to use
spulci
Hallo,
I've got my dynamic report done using DEAPI; some more polish to the code and everything is done. Now I want to implement the right pattern to instantiate the Platform object inside my web application. As far as I can understand I should have only one istance of Platform object (a singleton) shared by all report design istances.
To do so I can create the Platform at startup, binding it to a Tomcat context with a Platform.startup() on initialization and a Platform.shutdown() on destruction. Obviously a Factory pattern will help me to obtain the singleton to be passed to the report design engine.
The singleton should be of DesignConfig type; while I should have one different IDesignEngine istance for each user connect to my web app that needs to generate run-time a report as well as a distinct SessionHandle for each user.
Is this the right way to procede?
Thanks a lot
Simon
P.S. Let me spend two OT lines to express all my thanks to this wonderful community for the support, for this forum, documentation and so on. Thanks to all of you!
Find more posts tagged with
Comments
There are no comments yet