|OSGI servlet hacks [message #1386686]
||Thu, 19 June 2014 13:11
| Igor Masternoy
Registered: June 2014
I have an OSGi app with servlets and this up can be setted up and launched on different machines with different size of memory and computing power. So I want to read some optimization servlet params NOT FROM PLUGIN.XML (because to change it server-admin will need repackage jar), but from property files. |
Now I've impl this in dirty way:
1. I receive ServletConfig inside serlvet init method
2. Use reflection to get _initParams from the ServletHolder
Also I'd like to mention that there is possibility to set parameters for servlet context, but I need to set exactly servletParameters (_initParams).
How can I do this without reflection (it can be disabled on JVM lvl)? Does eclipse jetty has extension points to customize this?
Powered by FUDForum
. Page generated in 0.01407 seconds