-
1. Re: JBoss AS 7.0.1 Web Context configuration like Tomcat 7 / environment entries
pgmjsd Sep 26, 2011 2:43 PM (in response to maderhan)I've done this using the JBoss @WebContext annotation in my beans. This annotation is part of org.jboss.ws:jbossws-spi:2.0.0.Beta6 in JBoss AS 7.0.1.Final.
-
2. Re: JBoss AS 7.0.1 Web Context configuration like Tomcat 7 / environment entries
asoldano Oct 3, 2011 11:24 AM (in response to pgmjsd)Currently that annotation is actually part of org.jboss.ws:jbossws-api
-
3. Re: JBoss AS 7.0.1 Web Context configuration like Tomcat 7 / environment entries
maderhan Oct 11, 2011 3:47 AM (in response to pgmjsd)Thank you Joshua!
Could you provide a small piece of code .
My goal is to do some init with a ServletContextListener like this:
(it works only with web.xml env. entries or with context.xml env. entries)@WebListener()
public class ServletContextListener implements javax.servlet.ServletContextListener {// Environment Entry
@Resource(name="application_id") String intParamApplicationID;...
cheers
Hans
-
4. Re: JBoss AS 7.0.1 Web Context configuration like Tomcat 7 / environment entries
thebravedave Feb 17, 2012 1:57 PM (in response to maderhan)Anyone know what maven repository has this dependency?
That covers the @WebContext annotation?
-
5. Re: JBoss AS 7.0.1 Web Context configuration like Tomcat 7 / environment entries
maderhan Feb 28, 2012 8:55 AM (in response to maderhan)I solved this by putting all the config stuff in web.xml as <env-entry> elements.
And I am using different web.xml's for the three stages {development|integration|production} which
will be applied during the final build process.