Comments (3)
I am not against this change, but I have 3 questions.
As far as I know, the only way to set a servletContext attribute is to call the
servletContext.setAttribute(name, value) method, isn't it?
For example, servletContext.setAttribute("javamelody.log", "true")
So, to externalize configuration, you still have to read the names and values
of parameters from some resource or file, and to call
servletContext.setAttribute for each one?
And, is there a reason to not use servletContext.setInitParameter(name, value)
instead?
Original comment by [email protected]
on 6 Mar 2015 at 9:41
from javamelody.
Yes, that's exactly what I'm doing during context initalization, scan
configuration params and copy those with "javamelody." to javamelody
configuration. I'm adding javamelody to existing project, configuration loading
is already implemented.
My project is build upon gwt, which is still using Servlet 2.5 API
specification, therefore ServletContext.setInitParameter is not available,
because it was added only in Servlet 3.0 API specification.
Original comment by [email protected]
on 9 Mar 2015 at 12:50
from javamelody.
ok, this is committed in trunk (revision 4043) and ready for the next release
(1.56).
Original comment by [email protected]
on 13 Mar 2015 at 6:49
- Changed state: Fixed
from javamelody.
Related Issues (20)
- net.bull.javamelody.JpaPersistence.guessDelegate (JpaPersistence.java:202) [javamelody-core-1.55.0.jar:1.55.0]Caused by: java.lang.IllegalStateException: java.lang.ClassNotFoundException: Can't find a delegate HOT 2
- Remove web-fragment.xml from core jar. HOT 3
- The unit of JDBC chart display error HOT 1
- Confluence - Sql Statistic is None HOT 3
- Jira - javamelody do not show sql statistic HOT 3
- Google code soon dead HOT 2
- Upload javamelody.war into the maven repository HOT 1
- Rest call to non existing resource on Jboos Wildfly/Undertow with Javamelody returns status 500 instead of 404 HOT 5
- Preventing adicional dialog boxes when clearing stats doesn't work HOT 4
- I can only waht sql graphs. HOT 3
- jboss eap 6.3 and javamelody ClassCastException HOT 3
- javamelody how to integrate to simple javaweb project,that jdbc+javabeen+servlet,thanks! HOT 1
- Basic Authentication and Sessions HOT 1
- MULTILINE && DOTALL flags for transform-patterns HOT 1
- IllegalAccessException when creating Jdbc Proxy (Java 8) HOT 2
- ClassLoader leak when using the reports and then hot-redeploy with Tomcat 7.0.42 or later HOT 3
- In processes list, CPU and Command are sometimes in the wrong column HOT 1
- HirakiCP pool and sql Statistics HOT 3
- Enhancement: JPA merge/persist/remove tracking HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javamelody.