Hi
Actually, i don't do something complicate. I exactly follow blog
http://piotrnowicki.com/2011/03/using-servlets-3-0-servletcontainerinitializer so my implementation just is the following:
import javax.servlet.*;
import java.util.*;
public class BundleServletContainerInitializer implements
ServletContainerInitializer {
public void onStartup(Set<Class<?>> c, ServletContext cx) {
System.out.println("--- CONTAINER INITIALIZER! ---");
}
}
then package this class as jar BundleServletContainerInit.jar, and put it into that web application WEB-INF/lib directory.
I also have one question in my mind, why do i need this? As you can see, it doesn't do anything useful, even BundleServletContainerInitializer
implements ServletContainerInitializer.
--denghui
Date: Thu, 17 Jul 2014 14:41:19 +0300
From: milesg78@xxxxxxxxx
To: gemini-dev@xxxxxxxxxxx
Subject: Re: [gemini-dev] Need help for gemini web.
Here you can find one very simple example - attached
Regards,
_______________________________________________
gemini-dev mailing list
gemini-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/gemini-dev