-
1. Email Problem with JBPM
jnhelal Feb 23, 2011 3:36 AM (in response to ravisawlani86)Looks like pvm do not find a smtp server at localhost/25 ...
Not sure if you are using JBPM4 ou 5. In case JBPM 4 you can set some kind of "mail.properties" file into the classpath. Take a look into source code examples in JBPM 4.4, there is one.
Regards
jnh
-
2. Email Problem with JBPM
ravisawlani86 Feb 23, 2011 5:05 AM (in response to jnhelal)Thanks for the reply jnh...
We tried using properties file but its not picking host name from there... and also we are using jBPM version 3.2.2..
Its still trying to file mails from localhost...
-
3. Email Problem with JBPM
rohya Feb 28, 2011 11:55 PM (in response to ravisawlani86)Add mail properties file into WEB-INF, Add SMTP host name insted of localhost..
-
4. Re: Email Problem with JBPM
ravisawlani86 Mar 2, 2011 4:10 AM (in response to rohya)Hi
Thanks For the reply....
I have attached my JBPM Project structure.
jbpm.cfg.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<string name="resource.mail.properties" value="jbpm.mail.properties"/>
</jbpm-configuration>
jbpm.mail.properties -->
jbpm.mail.transport.protocol=smtp
jbpm.mail.smtp.auth=false
jbpm.mail.smtp.host=xx.xx.xx.xx
jbpm.mail.smtp.port=25
processDefination.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="todo">
<start-state name="start">
<transition to="mail-node1"></transition>
</start-state>
<mail-node name="mail-node1" to="xy@abc.com">
<subject>sss</subject>
<text>sss</text>
<transition to="done"></transition>
</mail-node>
<end-state name="done"/>
</process-definition>
Where will i make WEB-INF folder in my project?
For exception please check my firt post in this thread........
Please help me out with this....
-
jbpmProjectForMail.bmp 1.7 MB
-
-
5. Email Problem with JBPM
rohya Mar 2, 2011 5:25 AM (in response to ravisawlani86)Make folder classes in WEB-INF add your mail properties, jbpm.cfg.xml, and process.jpdl file...
Add following code in mail properties file...
mail.smtp.host yourhostname
mail.smtp.port 25
mail.smtp.auth false
dont add mail session in jbpm.cfg.xml.
its working for me...
-
6. Re: Email Problem with JBPM
ravisawlani86 Mar 2, 2011 5:51 AM (in response to ravisawlani86)Hi
Thanks for your quick reply...
In the above reply i have mentioned my jbpm.cfg.xml, jbpm.mail.properties and
processdefinition.xml content... please check
my jbpm project structure is as follows-->
PorjectName
->bin
->com.sample
->sample
processdefination.xml
jbpm.cfg.xml
jbpm.mail.properties
->src
->main
->config
jbpm.cfg.xml
jbpm.mail.properties
->java
->com.sample
->jpld
->simple
processdefinition.xml
->test
->java
->com.sample
.classpath
.project
Now Please let me know where should i keep my WEB-INF....
Also attached is my project package structure....
-
jbpmProjectForMail.bmp 1.6 MB
-
-
7. Re: Email Problem with JBPM
rohya Mar 2, 2011 5:55 AM (in response to ravisawlani86)how you call your process???
Do you have any UI part in project???
-
8. Re: Email Problem with JBPM
rohya Mar 2, 2011 5:59 AM (in response to rohya)I saw your package structure...
you can add folder in src
src
----main
----test
----classes
Put your all jpdl,conf,properties file in this folder it should work...
-
9. Email Problem with JBPM
ravisawlani86 Mar 2, 2011 6:04 AM (in response to rohya)We are using JBoss SOA App Server.... We deploy our jbpm project in the server and server provides UI for signalling the process....
-
10. Re: Email Problem with JBPM
ravisawlani86 Mar 2, 2011 6:33 AM (in response to ravisawlani86)Sorry NO LUCK....
Still getting the same error :-
cannot send mail (3 retries left): Could not connect to SMTP host: localhost, port: 25
How do u run your process... Could you please explain...
-
11. Re: Email Problem with JBPM
rohya Mar 2, 2011 6:40 AM (in response to ravisawlani86)Ohhh It seems your using old version on jBPM. I am using jBMP4.3 version.
i saw your mail properties file which is
jbpm.mail.transport.protocol=smtp
jbpm.mail.smtp.auth=false
jbpm.mail.smtp.host=xx.xx.xx.xx
jbpm.mail.smtp.port=25
use this
mail.smtp.host mail.YOURHOST.com
mail.smtp.port 25
mail.smtp.auth false
Dont give = sign in this properties file..
We are using process in ZK framwork so we have WEB_INF folder for UI part we keep all process file in that folder... its not neccessory actually..
try given code