Author |
Message |
20/01/2018 22:36:07
|
zoteszari
Active
Joined: 04/12/2017 09:47:01
Messages: 8
Offline
|
Hi Captain,
Is there a way to do some application level initialization/cleanup ? I mean, something like ServletContextListener contextInitialized/contextDestroyed ?
I tried to define a class that implements ServletContextListener interface and I added a listener entry for that class in web.xml but I receive a ClassNotFoundException error.
Thanks,
Zoltan
|
|
|
22/01/2018 11:13:36
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Hi Zoltan,
there are no specific things that CaptainCasa adds here! So normal J2EE-Servlet mechanisms are the way to go.
Please not: if using hot deployment then the classes that you hot deploy are living on a classloader below the webapp-classloader of the servlet engine.
In the hot deployment configuration you can for this reason explicit tell, which packages to be deployed as hot deploy packages, and which ones to be deplyoed to WEB-INF/classes.
Hot deployment configuration is done in the CaptainCasa tool, "Configruation..." button below projct selection, on the left.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/01/2018 14:00:21
|
zoteszari
Active
Joined: 04/12/2017 09:47:01
Messages: 8
Offline
|
Hi Captain,
That did the trick!
Thanks,
Zoltan
|
|
|
|