cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to import own dictionary

boevink
Champ in-the-making
Champ in-the-making
What is actually the preferred way to insert a custom dictionary/model into alfresco?
As far as I know you can package a custom model as extension into a JAR file that should be placed somewhere on the classpath. But there also wiki descriptions where the bootstrap or AMP module approach seems to work.

What is the difference and what are the pros and cons for the different aproaches?:
- model extension by using jar on classpath
- bootstrap script (I'm not sure yet how to deploy it)
- AMP module
3 REPLIES 3

kbonnet
Champ in-the-making
Champ in-the-making
I think it also depends on what you're using the model for. If it's being used by java customizations it should be packaged with that customizations. If you just want to add some properties for your users to use, you can put your model in the extensions directory and refer to it from a spring bean defition file (*-context.xml) in that same extension directory.

Hope this helps.

boevink
Champ in-the-making
Champ in-the-making
If it's being used by java customizations it should be packaged with that customizations.

I'm not sure if I understand whats being meant with java customizations. If you mean changing sources of alfresco, we don't (for now).
We are actually using alfresco as it is with additional dictionary models.

We are looking for the best way to deploy our document models (which may be packaged in more than one single 'bundle') to different environments (development/test/production).

kbonnet
Champ in-the-making
Champ in-the-making
If you really want to deploy it via a jar or an amp, i never did this. So someone else needs to answer your question.

I normally distribute the model with the other configuration in the extensions directory. So this is not packaging.

Good luck for now.