[jBPM] - Missing history data
by Urho Kakkonen
urho [http://community.jboss.org/people/urho] created the discussion
"Missing history data"
To view the discussion, visit: http://community.jboss.org/message/566486#566486
--------------------------------------------------------------
Hi,
Problem is that jbpm history information is not stored to database when using Spring configuration and Spring managed transactions. I'm using jbpm 4.4 and Spring 3
When I import jbpm.default.cfg.xml configuration on top of my own configuration, then the history data is stored, but I think this overrides the <transaction-context> or something and therefore it creates new transaction for jbpm code insted of reusing existing one.
Below is the configurations that I use:
My jbpm.cfg.xml:
<jbpm-configuration xmlns="http://jbpm.org/xsd/cfg">
<!--import resource="jbpm.default.cfg.xml" /-->
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<!--import resource="jbpm.jobexecutor.cfg.xml" /-->
<import resource="jbpm.businesscalendar.cfg.xml" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor policy="requiresNew"/>
</command-service>
<command-service name="txRequiredCommandService">
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService">
<ref object="txRequiredCommandService" />
</field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer"
init="eager">
</object>
<!-- 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 />
</process-engine-context>
<transaction-context>
<transaction type="spring" />
<repository-session />
<db-session />
<message-session />
<timer-session />
<history-session>
<object class="org.jbpm.pvm.internal.history.HistorySessionImpl" />
</history-session>
<!--
Need to set explicitly that we don't want jbpm to create sessions
-->
<hibernate-session current="true" close="false" />
</transaction-context>
</jbpm-configuration>
My spring xml (part of it):
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingLocations">
<list>
<value>classpath:jbpm.execution.hbm.xml</value>
<value>classpath:jbpm.repository.hbm.xml</value>
<value>classpath:jbpm.task.hbm.xml</value>
<value>classpath:jbpm.history.hbm.xml</value>
<value>classpath:jbpm.identity.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
<prop key="hibernate.query.substitutions">true=1 false=0</prop>
<prop key="hibernate.bytecode.use_reflection_optimizer">false</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.use_sql_comments">false</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
<!--prop key=hibernate.hbm2ddl.auto>update</prop-->
</props>
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
<property name="url" value="${db.url}" />
<property name="username" value="${db.username}" />
<property name="password" value="${db.password}" />
</bean>
<bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.processengine.SpringHelper">
<property name="jbpmCfg" value="jbpm.cfg.xml"/>
</bean>
<bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="createProcessEngine"/>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566486#566486]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[JBoss Web Services] - JBoss 4.0.2 and JBossws 2.0.3. GA
by Rui Nogueira
Rui Nogueira [http://community.jboss.org/people/kumandus] created the discussion
"JBoss 4.0.2 and JBossws 2.0.3. GA"
To view the discussion, visit: http://community.jboss.org/message/567112#567112
--------------------------------------------------------------
Hi everyone,
I am trying to do a client that consumes serivces from a web service to run on a server running the Jboss 4.0.2. The thing is i can't upgrade de server version of jboss and i'am stick to the 4.0.2. I want to use de JBossws, specificaly the wsconsumer to produze automatically the java code from de wdsl file. I already try de Axis2, wsimport, and de JBossws new versions, but all of them use diferent comunication library that doesn´t exist's on a JBoss 4.0.2.
My questions are:
- Is this possible?
- Is the JBossws 2.0.3 GA the rigth version?!
I already install JBoss 4.0.2 but i can't install the JBossws 2.0.3 GA:
tests-compile:
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\ant-import\build-testsuite.xml:375: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 195 source files to C:\My Documents\Tools\jbossws-native-2.0.3.GA\output\classes
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispatchTestCase.java:42: package junit.framework does not exist
[javac] import junit.framework.Test;
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispatchTestCase.java:56: cannot access junit.framework.TestCase
[javac] class file for junit.framework.TestCase not found
[javac] public class AsynchronousDispatchTestCase extends JBossWSTest
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousDispatchTestCase.java:64: cannot find symbol
[javac] symbol : class Test
[javac] location: class org.jboss.test.ws.jaxws.samples.asynchronous.AsynchronousDispatchTestCase
[javac] public static Test suite()
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousProxyTestCase.java:36: package junit.framework does not exist
[javac] import junit.framework.Test;
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\AsynchronousProxyTestCase.java:53: cannot find symbol
[javac] symbol : class Test
[javac] location: class org.jboss.test.ws.jaxws.samples.asynchronous.AsynchronousProxyTestCase
[javac] public static Test suite()
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\TestEndpointBean.java:33: package org.jboss.logging does not exist
[javac] import org.jboss.logging.Logger;
[javac] ^
[javac] C:\My Documents\Tools\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\samples\asynchronous\TestEndpointBean.java:39: cannot find symbol
[javac] symbol : class Logger
[javac] location: class org.jboss.test.ws.jaxws.samples.asynchronous.TestEndpointBean
[javac] private static Logger log = Logger.getLogger(TestEndpointBean.class);
[javac] ^
...... etc
Could any one help me or point me to rigth solution?!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/567112#567112]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - Re: First jBPM5 snapshots
by Kris Verlaenen
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion
"Re: First jBPM5 snapshots"
To view the discussion, visit: http://community.jboss.org/message/566781#566781
--------------------------------------------------------------
@Abdelilah Assiari
We are currently focussing on the functionality as defined in the BPMN 2.0 specification, which probably covers about 95% of the features offered in jPDL before. Continuations are currently not yet supported in jBPM5, because we believe the need for asynchronous or exclusive continuations can be largely diminished in most cases by making sure that all work that would take too long to execute synchronously is executed asynchronously using a service node (which is probably a good idea anyway, to extract implementation logic from your processes). It is also possible to asynchronously invoke the process engine (in case you don't want the user transaction to wait for the result of the invocation).
If you are willing to share specific use cases, we can discuss whether these features would be sufficient to solve your requirements.
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566781#566781]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months