cancel
Showing results for 
Search instead for 
Did you mean: 

Primary Spring configuration files

mbt28
Champ in-the-making
Champ in-the-making
Hi,

I downloaded activity through Eclipse software manager. I want to build it with mysql database support. So, I would like use JNDI however I cannot find primary spring configuration files as I guided it in the activiti user guide. I dont have any directory on my computer called activiti-webapp-explorer2. What did I miss during installation?

``
To switch the Activiti Explorer and Activiti Rest web apps from db.properties configuration to JNDI datasource configuration, open the primary Spring configuration files (activiti-webapp-explorer2/src/main/webapp/WEB-INF/activiti-standalone-context.xml and activiti-webapp-rest2/src/main/resources/activiti-context.xml), and delete the beans named "dbProperties" and "dataSource". Then, add the following bean
``

Thanks.
10 REPLIES 10

yvoswillens
Champ in-the-making
Champ in-the-making
Hi,

it seems like you installed the Activiti BPMN2.0 Designer plugin for Eclipse. This plugin mainly provides BPMN2.0 modelling features.
To download the Activiti framework please visit http://activiti.org/download.html .

Regards,

Yvo

mbt28
Champ in-the-making
Champ in-the-making
Hi,

Well, actually I have already downloaded this file. And opened the war file via Eclipse. I cannot find this database configuration files, actually I do not have mentioned directories. I missed something during installation but I don't know what.

Regards.

jbarrez
Star Contributor
Star Contributor
Uhm … I'm not sure what you are expecting … Eclipse is an IDE. The war goes into a web container. Those two are not the same…

mbt28
Champ in-the-making
Champ in-the-making
Hi,

Thank you for the reply. I am looking inside the war file that I downloaded from Activiti website and the files that I downloaded through Eclipse (with opening Activiti project), but I cannot find the folders that I have to place necessary configuration files for to use external database like mysql.

Regards

trademak
Star Contributor
Star Contributor
It's really not clear what you are trying to do. If you are trying to change the database settings in the Activiti Explorer you should look for a file name db.properties.

Best regards,

mbt28
Champ in-the-making
Champ in-the-making
Okay, Now I understand my mistake. I need to build activiti with maven but I just tried to fetch the files with eclipse then change setting and deploy. So, as far I understand it doesnt work in this way.

Am I right with these?

The steps should be like this:

Download the activiti from git source not the one on download page.
Change the database configuration files ``JNDI Datasource Configuration``
Build it with maven then deploy

mbt28
Champ in-the-making
Champ in-the-making
Hi

Instead of activiti-standalone-context.xml and activiti-context.xm I have activiti-custom-context.xml fıles under resources folder. Shall I use these ones to configure JNDI?
<code>To switch the Activiti Explorer and Activiti Rest web apps from db.properties configuration to JNDI datasource configuration, open the primary Spring configuration files (activiti-webapp-explorer2/src/main/webapp/WEB-INF/activiti-standalone-context.xml and activiti-webapp-rest2/src/main/resources/activiti-context.xml), and delete the beans named "dbProperties" and "dataSource". Then, add the following bean:</code>

mbt28
Champ in-the-making
Champ in-the-making
I think Activiti has changed its database configuration system and it is not documented yet.

jbarrez
Star Contributor
Star Contributor
Yes indeed. Simply overwrite the datasource in the activiti-custom-context.xml and use the Spring wrapper for jndi datasources