13.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.core.api" meta-inf="import"/> <module name="org.picketlink.core" meta-inf="import"/> <module name="org.picketlink.idm.api" /> <!-- if you're using a JPA Identity Store and the Basic Model, you must provide this dependency. --> <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.
13.5.2.1. Injecting a PartitionManager
using Resource
annotation
@Resource(mappedName="picketlink/JPADSBasedPartitionManager") private PartitionManager jpaDSBasedPartitionManager;