[jBPM Users] - Re: NullPointerException in JobExecutorMessageSession.send w
by joelmatt
<?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration>
|
| <import resource="jbpm.jpdl.cfg.xml" />
| <import resource="jbpm.identity.cfg.xml" />
| <import resource="jbpm.jobexecutor.cfg.xml" />
|
| <process-engine-context>
| <job-executor threads="10" idle="15000" idle-max="60000" lock-millis="3600000" />
|
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
|
| <!-- Here we needed to change the transaction interceptor -->
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor />
| </command-service>
|
| <!-- Added spring as read-context -->
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel"
| factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <!-- <authentication /> -->
|
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
|
| <address-resolver />
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00" />
| <tuesday hours="9:00-12:00 and 12:30-17:00" />
| <wednesday hours="9:00-12:00 and 12:30-17:00" />
| <thursday hours="9:00-12:00 and 12:30-17:00" />
| <friday hours="9:00-12:00 and 12:30-17:00" />
| <holiday period="01/07/2008 - 31/08/2008" />
| </business-calendar>
|
| <mail-template name='task-notification'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hi ${task.assignee},
| Task "${task.name}" has been assigned to you.
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
| <mail-template name='task-reminder'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hey ${task.assignee},
| Do not forget about task "${task.name}".
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
|
|
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
| <transaction />
| <message-session />
| <timer-session />
| <history-session />
| <mail-session>
| <mail-server>
| <session-properties resource="jbpm.mail.properties" />
| </mail-server>
| </mail-session>
|
| <!-- Need to set explicitly that we don't want jbpm to create sessions -->
| <hibernate-session current="false" />
| </transaction-context>
| </jbpm-configuration>
The above configuration worked. I was missing tag in <transaction-context> and I have upgraded to jbpm 4.1
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263174#4263174
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263174
15 years, 2 months
[JBoss Cache Users] - CacheLoader saves but rollbacks
by chtimi2
I'm testing cache persistence with Core3.2 and Pojo3.0. I use a JdbcCacheLoader, which hits HSQLDB.
The test starts the cache, attaches the "table" component, and modifies its state within a JTA transaction.
--> As soon as the attached componenent is modified HSQLDB is written to (lines appear in jbosscache.log), which is fine; then the process terminates.
--> In the HSQLDB .log file i can see inserts and stuff that involves the FQN of my component. At the end of the script though there is a rollback, so my data is never saved (the JBOSSCACHE table is empty)
I added a cache loader interceptor, and i can see node events, but no TransactionRegisteredEvent. Maybe that is related?
My cache config:
I'm testing cache persistence with Core3.2 and Pojo3.0. I use a JdbcCacheLoader, which hits HSQLDB.
|
| The test starts the cache, attaches the "table" component, and modifies its state within a JTA transaction.
| --> As soon as the attached componenent is modified HSQLDB is written to (lines appear in jbosscache.log), which is fine; then the process terminates.
| --> In the HSQLDB .log file i can see inserts and stuff that involves the FQN of my component. At the end of the script though there is a rollback, so my data is never saved
|
| I added a cache loader interceptor, and i can see node events, but no TransactionRegisteredEvent. Maybe that is related?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263166#4263166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263166
15 years, 2 months
[JCA] - Fungal RADeployer not handling empty ra.xml property values
by magicduncan
Hi guys,
I was just having a play with the 1.0.0-ALPHA release of the JCA container. Im particularly interested in running an embedded container inside a Java application, so was having a go at getting this up and running.
All went well, until I tried to deploy (for example) a jms-rar.rar that I had plundered from a jboss 4 app server. After resolving all the missing jars, it eventually failed when the fungal RADeployer was calling the Injection.inject method for each of the config-properties in the resource adapter's ra.xml.
As it turned out, this ra.xml had empty values for such fileds as UserName, Password, ClientID. Fungal's Injection.inject method really didnt like the empty values coming through, tho I would have thought these were entirely valid for ra.xml? Hacking the ra.xml to provide some non empty values got me past the issue, but clearly this is not ideal.
Is this a bug?
Otherwise this project looks really cool. Will definitley be investigating it further.
Cheers,
Ross
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263162#4263162
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263162
15 years, 2 months