Demonstrates how to use the Wicket Framework 7.x with the JBoss server using the Wicket Java EE integration, packaged as an EAR
This is an example of how to use Wicket Framework 7.x with WildFly, leveraging features of {javaVersion}, using the Wicket Java 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
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.