[JBoss jBPM] - Re: Un expected behavior observed with Token details
by mputz
Please disregard my previous comment - it has nothing to do with configuration.
I oversaw that you were throwing an exception, but didn't mark the current transaction as to be rolled back.
So instead of your workaround of re-setting the node on the context again, just add jbpmContext.setRollbackOnly() in the catch block.
public void processWorkflowEvent(long pid, String eventName) throws ...
| {
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try
| {
| ... your own code
|
| // process signal
| token.signal(eventName);
|
| }
| catch(Exception e)
| {
| // mark this transaction as dirty
| jbpmContext.setRollbackOnly();
| // do whatever you need to handle own exceptions
| }
| finally
| {
| jbpmContext.close();
| }
| }
No need for a JIRA entry IMO.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048255#4048255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048255
18 years, 11 months
[JBossCache] - jboss-archive-browsing vs jboss-common-core
by atijms
I'm trying to use JbossCache 2.0.0 cr1 in a project that also uses Hibernate (with EntityManager 3.3.1 ga).
There seems to be a conflict between the dependencies of these. Hibernate-EntityManager comes with a jar file called jboss-archive-browsing.jar. In its manifest it sais it's actually jboss-common-core 2.0.2 alpha.
JBossCache 2.0.0 cr1 on the other hand comes with a jar file called jboss-common-core. There is no version information whatshowever in its manifest.
When comparing these two, they seem mostly the same, although there are a couple of differences. E.g. org.jboss.util.file.ArchiveBrowserFactory exists in the jboss-common-core that comes with JbossCache but not in the one that comes with Hibernate-EntityManager.
What version of jboss-common-core does JbossCache 2.0.0 cr1 comes with? Is there any effort going on to somehow align the different Jboss projects?
Is it possible at all to use Hibernata-entitymanager 3.3.1 ga (the current one) with JbossCache, considering these conflicting dependencies?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048243#4048243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048243
18 years, 11 months