Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » OSGi Enterprise Tools » OSGI servlet hacks(How to add servlet init params programatically)
OSGI servlet hacks [message #1386686] Thu, 19 June 2014 13:11
Igor Masternoy is currently offline Igor MasternoyFriend
Messages: 1
Registered: June 2014
Junior Member
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?
Previous Topic:OSGI | Export Interface vs Implementation
Next Topic:Creating Bundles OSGI:
Goto Forum:
  


Current Time: Wed Jul 01 00:18:57 GMT 2015

Powered by FUDForum. Page generated in 0.03948 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software