So, Simple steps to use JCR | Jackrabbit with Database..
1. Start a liferay instance with any database you need. For me its, MSSQL 2005 Express Edition.
2. That will create a repository.xml file in data/jackrabbit/ folder.
Below is a default repository.xml file.
Change the content to include filesystem and persistence manager in this way. Use your correct username and password.
3. Now, Add the properties below in portal-ext.properties file. We need to let liferay know that we are going to store images and document in db via JCR.
com.liferay.portlet.documentlibrary.store.JCRStore is what we need to store documents via JCR.
That's it. Restart your liferay instance and you should see the files being stored in database.
Check my post below to see if database size increases when you add few files.
[SQL Server] Get size of database in SQL Server 2005
All done.
Until next time. :)
1. Start a liferay instance with any database you need. For me its, MSSQL 2005 Express Edition.
2. That will create a repository.xml file in data/jackrabbit/ folder.
Below is a default repository.xml file.
Change the content to include filesystem and persistence manager in this way. Use your correct username and password.
3. Now, Add the properties below in portal-ext.properties file. We need to let liferay know that we are going to store images and document in db via JCR.
com.liferay.portlet.documentlibrary.store.JCRStore is what we need to store documents via JCR.
That's it. Restart your liferay instance and you should see the files being stored in database.
Check my post below to see if database size increases when you add few files.
[SQL Server] Get size of database in SQL Server 2005
All done.
Until next time. :)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.