cancel
Showing results for 
Search instead for 
Did you mean: 

Database and mail configuration

ozkan
Champ in-the-making
Champ in-the-making
Hello everyone,
Here is my bean that in activiti.cfg.xml

<bean id="processEngineConfiguration"
      class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
      <bean id="processEngineConfiguration"
         class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">

         <!– Database configurations –>
         <property name="databaseSchemaUpdate" value="true" />
         <property name="jdbcUrl" value="jdbcSmiley Tongueostgresql://localhost:5432/activiti" />
         <property name="jdbcDriver" value="org.postgresql.Driver" />
         <property name="jdbcUsername" value="postgres />
         <property name="jdbcPassword" value="******" />
         <property name="jobExecutorActivate" value="true" />
         <property name="dbCycleUsed" value="true" />
         <property name="mailServerHost" value="smtp.test.com" />
         <property name="mailServerPort" value="25" />
         <property name="mailServerDefaultFrom" value="test@test.com" />
         <property name="mailServerUsername" value="test@test.com" />
         <property name="mailServerPassword" value="test" />
      </bean>
   </bean>


I can't send a mail and run as junit test.Thanks for help
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
your xml has been swallowed. You need to put these between 'code' tags on this forum

ozkan
Champ in-the-making
Champ in-the-making
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
  <property name="dataSource" ref="dataSource" />
  <property name="transactionManager" ref="transactionManager" />
  <property name="databaseSchemaUpdate" value="false" />
  <property name="mailServerHost" value="smtp.gmail.com" />
  <property name="mailServerPort" value="25" />
  <property name="jobExecutorActivate" value="false" />
  <property name="databaseType" value="postgres" />
  <property name="jdbcUrl" value="jdbcSmiley Tongueostgresql://project:5432/activiti" />
  <property name="jdbcDriver" value="org.postgresql.Driver" />
  <property name="jdbcUsername" value="myusername" />
  <property name="jdbcPassword" value="mypassword" />

  <property name="databaseSchemaUpdate" value="false" />

</bean>