Replaced Servlet with ServletContextListener in webapp packaging
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@138 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
bbdd1ae5d9
commit
9784c6608d
|
@ -16,7 +16,7 @@ public class DavGatewayServletContextListener implements ServletContextListener
|
||||||
public void contextInitialized(ServletContextEvent event) {
|
public void contextInitialized(ServletContextEvent event) {
|
||||||
InputStream settingInputStream = null;
|
InputStream settingInputStream = null;
|
||||||
try {
|
try {
|
||||||
settingInputStream = DavGatewayServlet.class.getClassLoader().getResourceAsStream("davmail.properties");
|
settingInputStream = DavGatewayServletContextListener.class.getClassLoader().getResourceAsStream("davmail.properties");
|
||||||
Settings.load(settingInputStream);
|
Settings.load(settingInputStream);
|
||||||
DavGateway.start();
|
DavGateway.start();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue