...
It's recommended to deploy the IDP and the web application (RP) into different container instances as in a production deployment. The container with the IDP can be used during development and testing for any web application.
Setting up the IDP
The following blog entries describe how to set up the IDP:
Set up the Relying Party Container
An individual The Fediz plugin is deployed in each container. But most into the Relying Party (RP) container. The security mechanism is not specified by JEE. Even it is very similar in each Servlet Container there are some differences which requires dedicated Fediz plugins for each Servlet Container implementation. Most of the configuration is container independent and described here
...