Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (46 sloc) 2.32 KB

wicket-ear: Wicket Framework used in a WAR inside an EAR.

Demonstrates how to use the Wicket Framework 7.x with the JBoss server using the Wicket Jakarta EE integration, packaged as an EAR

What is it?

This is an example of how to use Wicket Framework 7.x with WildFly, leveraging features of {javaVersion}, using the Wicket Jakarta EE integration.

Features used:

  • Injection of @PersistenceContext

  • Injection of a value from web.xml using @Resource

  • Injection of a stateless session bean using @EJB

This is an EAR version, with the following structure:

-`wicket-ear` - parent module
    - `ejb`: Contains EJB beans and JPA entities. Creates a `.jar` file
    - `war`: Contains the Wicket web application, which uses the EJB beans. Creates a `.war` file
    - `ear`: Packages the EJB JAR and WAR into an EAR. Creates an `.ear` file

Access the application

The application will be running at the following URL: http://localhost:8080/{artifactId}/

  • You will see a page with a table listing the existing Contact entities. Initially, this table is empty.

  • Click on the Insert a new Constact link to add a new contact.

Debug the Application

If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.

$ mvn dependency:sources
$ mvn dependency:resolve -Dclassifier=javadoc
You can’t perform that action at this time.