[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Is there a way to do some application level initialization/cleanup ?  XML
Forum Index -> Development
Author Message
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
CaptainCasa

Power User
[Avatar]

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
zoteszari

Active

Joined: 04/12/2017 09:47:01
Messages: 8
Offline

Hi Captain,
That did the trick!

Thanks,
Zoltan
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team