Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Use Wicket With JEE6

DZone's Guide to

How to Use Wicket With JEE6

· Java Zone ·
Free Resource

Java-based (JDBC) data connectivity to SaaS, NoSQL, and Big Data. Download Now.

Since JEE6 we no longer need a deployment descriptor (web.xml), so how do we declare the necessary configurations of Wicket?

Solution: Create an empty class that inherits from WicketFilter and annotated with the necessary config.

import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import org.apache.wicket.protocol.http.WicketFilter;


@WebFilter(value = "/*",
initParams = { @WebInitParam(name = "applicationClassName", value = "tn.blog.dev.MyApplication")
, @WebInitParam(name="wicket.configuration", value="deployment")})
public class MyFilter extends WicketFilter{

}
 

Note:You can add as many prameters as you want.

Connect any Java based application to your SaaS data.  Over 100+ Java-based data source connectors.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}