In Servlet 3.0 you can also add @WebServletContextListener as annotation to the class, without having to use web.xml
Example: https://blogs.oracle.com/swchan/entry/servlet_3_0_annotations Jörg On Wed, Jan 14, 2015 at 7:50 AM, Subhadip Bagui <i.ba...@gmail.com> wrote: > Yeah. I'm using listener, but it was giving some error. Fixed it and now > it's working. My mistake :$ > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/26d40ffe-4d0b-4c49-a81c-e86e5f091b9a%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/26d40ffe-4d0b-4c49-a81c-e86e5f091b9a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGhcP72aYs9arcM_VCqu2HZDp3e%2B2w5sf5NhXPE8DMqbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.