[JBoss jBPM] - How to use Mail.send() ?
by HeinerNiehues
When i use the email-node the Email transmission in JBPM works fine.
Now, I created an own ActionHandler for sending emails. But it doesnt works. I tried to use the method
org.jbpm.mail.Mail.Mail.send(Properties, String, List, String, String)
but I guess i made something wrong:
try {
| JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.host");
| Properties p = new Properties();
| p.put("mail.smtp.host", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.host"));
| p.put("mail.smtp.port", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.port"));
| p.put("mail.smtp.auth", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.auth"));
| p.put("mail.smtp.ssl", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.ssl"));
| p.put("mail.smtp.user", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.user"));
| p.put("mail.smtp.password", JbpmConfiguration.Configs.getObject("jbpm.mail.smtp.password"));
| List l = new ArrayList();
| l.add("thereceiver(a)gmail.com");
| Mail.send(p, "username",l, "The subject", "The text");
| } catch (Exception e ) {
| e.printStackTrace();
| }
A JbpmException: couldnt send email with the cause:
javax.mail.AuthenticationFailedException
Actually i am using the same data like for the MailNode..
best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107174#4107174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107174
18 years, 8 months
[JBoss Seam] - ThemeSelector and ConversationContext
by Ben90
Hi
I have 2 themes configured in the components.xml
| <theme:theme-selector cookie-enabled="false" scope="conversation" >
| <theme:available-themes>
| <value>classic</value>
| <value>modern</value>
| </theme:available-themes>
| </theme:theme-selector>
and start from the main-page a conversation:
<s:link action="#{login.login(1)}" value="classic" propagation="begin"/>
| <br/>
| <s:link action="#{login.login(2)}" value="modern" propagation="begin"/>
In the action-method i read out the themeSelector-Object and set either the classic oder modern theme. This all works fine, but if open the first link in a tab and then the second link in another tab, switch back to the first tab, navigate around from there, i get the second - theme (the latest). The ConversationContext is still ok (every tab has its own context).
So my question would be if it is possible to use conversation-based themes. If yes, an example would be great. I tried around with either setting the scope in the theme-selector-tag in components.xml but had no luck. also enabling/disabling the cookie-tag in there didn't work.
any help appreciated
tnx & greetings
ben
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107170#4107170
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107170
18 years, 8 months