Wicket Debug / Deployment mode

By default, Wicket starts in development mode. When you want to deploy the application to your live system you will have to switch to deployment mode. This blog describes 3 ways to achieve this.  

  1. JVM Argument
  2. Servlet/filter initialization parameter
  3. Context initialization paramater.

1. JVM Argument

Add the property -Dwicket.configuration=deployment to your JVM Arguments. This one is very usefull when you want to switch on your local system to deployment mode (during development), because you don’t have to change files, only local settings. This property will be checked first so you can override the servlet/filter or context settings.

2. Servlet/filter

Example:

<filter>
...
 <init-param>
  <param-name>configuration</param-name>
  <param-value>deployment</param-value>
 </init-param>
...
</filter>

3. Context

Example:

<context-param>
 <param-name>configuration</param-name>
 <param-value>deployment</param-value>
</context-param>

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>