12.5.2. Usage Examples
If you want to have your deployment properly configured with the PicketLink Identity Management Services, you should add a
META-INF/jboss-deployment-structure.xml
file to your deployment as follows:
<jboss-deployment-structure> <deployment> <dependencies> <module name="org.picketlink.idm" /> <!-- We only need this dependency because we want to use the built-in schema --> <module name="org.picketlink.idm.schema" /> </dependencies> </deployment> </jboss-deployment-structure>
Note
When you're configuring the PicketLink dependencies using the
META-INF/jboss-deployment-structure.xml
file you don't need to ship the libraries inside your deployment. All the necessary dependencies are automatically resolved and configured.
12.5.2.1. Injecting a PartitionManager
using Resource
annotation
@Resource(mappedName="picketlink/JPADSBasedPartitionManager") private PartitionManager jpaDSBasedPartitionManager;