Hi
I have configured 'allinone' projects in my system but i don't have alfresco community installed in my system.I believe the project will get connect to tomcat runner internally and by default it will be connected to H2 database.but if i want to connect to other databases such as postresql,mysql etc, where i can define the connection properties. As i am aware of that if we install alfresco community, by default we can configure database in alfresco-global.properties file, but i want to create the project independently for development purpose, ie. no need to install alfresco, so where will i configure the database connections ? if i need the alfresco-global file to be added where i have to place the file?
Please guide me to understand on that. Thanks in Advance
It depends on which alfresco SDK you are using.
If your SDK is below 3.0.0 than
If your SDK is above 3.0.0 than
Hi Krutik,
I am using SDK 2.2.0 Allinone alfresco project,as per your point, where i can find the alfresco global properties file ? if i am correct, this is the path where alfresco-global.proprties file located
C:\alfresco\alfresco\alfresco-repo-amp\target\amp\config\alfresco\module\alfresco-repo-amp\alfresco-global
and how to grab driver and include it in pom?can you guide me on that?
You should not update anything inside target folder.I think below should be location of the file
src\main\amp\config\alfresco\module\${module.id}\alfresco-global.properties
I updated the alfresco-global.properties file with postgres db connection properties, but still getting error and while compiling it shows db connected to H2 database.
if i am correct,normally the file located in tomcat/shared/classes folder, which will overrides the properties given in project and execute it, but in my case alfresco community is not running, so where i can define the database connection properties?Any suggestion would be appreciated.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.