Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for adding Servlet Context Listeners #410

Closed
rsov opened this issue Jan 24, 2017 · 1 comment
Closed

Add support for adding Servlet Context Listeners #410

rsov opened this issue Jan 24, 2017 · 1 comment

Comments

@rsov
Copy link
Contributor

rsov commented Jan 24, 2017

Hello,

I'm using Warbler 2.0.4, with the warbler.rb config file. Wanted to add a custom context listener for tomcat.
The only way I got it to work was to modify @servlet_context_listeners variable.

Would it be possible to made a cleaner api for modifying it?

My current code:

config.webxml.instance_variable_set(:@servlet_context_listeners, 
      [config.webxml.servlet_context_listener, 'org.traf.jruby.RakeServlet'])

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41283170-add-support-for-adding-servlet-context-listeners?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).
@kares
Copy link
Member

kares commented Jun 6, 2018

config.webxml.servlet_context_listeners << 'org.traf.jruby.Servlet' should be fine in 2.0.5

@kares kares closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants