Product SiteDocumentation Site

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:
			<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" />


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. Injecting a PartitionManager using Resource annotation

private PartitionManager jpaDSBasedPartitionManager;