self written (web) viewer - where to put libs/runtime [message #200932] |
Wed, 15 November 2006 09:41 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: xxx.yyy.com
I had written an own birt viewer, which runs in a web container (Tomcat). It
seems to work perfectly.
Now I had to consider where to put all the jars and OSGi runtime.
OK, I can put it into the war - the war file size increases 40MB. This would
be OK, if there is only one or a few webapps on a server, but I have a lot
(small) webapps running on one tomcat. So adding 40MB to each war is not a
good idea.
One solution I've tested, is to put the jars (found in ReportEngine/lib)
into tomcats shared/lib directory and the runtime itself somewhere in the
filesystem. Platform.startup() and shutdown() is called from a tomcat
lifecyclelistener. So the webapps itself must not call startup() and
shutdown(). The webapps get a birt engine and execute reports. So the OSGi
rumtime ist started only once. May I have problems e.g. by reloading,
un/deplyoing several webapps? If one birt engine crashes, are the other
webapps affected by this?
The second solution, I tried, is to put the jars for startup() into each
webapp (WEB-INF/lib). The webapps itselfes call startup() and shutdown(). So
each webapp starts its own OSGI runtime.
Which is the better solution?
Is it better to start one OSGi rumtime for each webapp? Or is the runtime so
stable, that a crash in one webapp's birt engine does not affect the birt
engine in a second webapp, if there is only one runtime for all webapps?
thx,
Gernot
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds