[jBPM] - jBPM5.4 and Spring Integration for multiple Transaction Manager
leo jut <[email protected]> Thu, 22 Aug 2013 01:39:47 -0400
| Newsgroups | gmane.comp.java.jboss.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_640676_1305861768.1377149987084
Content-Type: multipart/alternative;
boundary="----=_Part_640675_956076546.1377149987084"
------=_Part_640675_956076546.1377149987084
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
leo jut [https://community.jboss.org/people/jutleo] created the discussion
"jBPM5.4 and Spring Integration for multiple Transaction Manager"
To view the discussion, visit: https://community.jboss.org/message/833475#8=
33475
--------------------------------------------------------------
h2. I refer to the official documentation, jBPM5.4 Integration spring.=20
h3. http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880 =
19.3.2. Spring using local transactions
*that's ok!*
*howeve, existing system use HibernateTransactionManager, if jBPM5 human t=
ask error, existing system data writed database=EF=BC=8CHow to deal with mu=
ltiple transacation manager?*
*exist system config=EF=BC=9A*
<bean id=3D"transactionManager"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 class=3D"org.springframework.orm.hibernate3.=
HibernateTransactionManager">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <property name=3D"sessionFactory">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <ref local=3D"sessionFactory" />
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </property>
=C2=A0=C2=A0 </bean>
*jbpm5.4 config=EF=BC=9A*
<bean id=3D"jbpmEMF" class=3D"org.springframework.orm.jpa.LocalContainerEnt=
ityManagerFactoryBean">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0<property name=3D"persistenceUnit=
Name" value=3D"org.jbpm.persistence.local"/>
=C2=A0=C2=A0=C2=A0=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2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0</jbpm:jpa-persistence>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</jbpm:configuration>
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</jbpm:ksession>
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/833475#833475]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=3D1&co=
ntainerType=3D14&container=3D2034]
------=_Part_640675_956076546.1377149987084
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link=3D"#355491" alink=3D"#4262a1" vlink=3D"#355491" style=3D"backgro=
und: #e2e2e2; margin: 0; padding: 20px;">
<div>
=09<table cellpadding=3D"0" bgcolor=3D"#FFFFFF" border=3D"0" cellspacing=3D=
"0" style=3D"border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -=
moz-border-radius: 6px; -webkit-border-radius: 6px;">
=09=09<tbody>
=09=09=09<tr>
=09=09=09=09<td>
=09=09=09=09=09<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" bgco=
lor=3D"#FFFFFF" style=3D"border: solid 2px #ccc; background: #dadada; width=
: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
=09=09=09=09=09=09<tbody>
=09=09=09=09=09=09=09<tr>
=09=09=09=09=09=09=09=09<td bgcolor=3D"#000000" valign=3D"middle" height=3D=
"58px" style=3D"border-bottom: 1px solid #ccc; padding: 20px; -moz-border-r=
adius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-ri=
ght-radius: 5px; -webkit-border-top-left-radius: 5px;">
=09=09=09=09=09=09=09=09=09<h1 style=3D"color: #333333; font: bold 22px Ari=
al, Helvetica, sans-serif; margin: 0; display: block !important;">
=09=09=09=09=09=09=09=09=09<!-- To have a header image/logo replace the nam=
e below with your img tag -->
=09=09=09=09=09=09=09=09=09<!-- Email clients will render the images when t=
he message is read so any image -->
=09=09=09=09=09=09=09=09=09<!-- must be made available on a public server, =
so that all recipients can load the image. -->
=09=09=09=09=09=09=09=09=09<a href=3D"https://community.jboss.org/index.jsp=
a" style=3D"text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
=09=09=09=09=09=09=09=09</td>
=09=09=09=09=09=09=09</tr>
=09=09=09=09=09=09=09<tr>
=09=09=09=09=09=09=09=09<td bgcolor=3D"#FFFFFF" style=3D"font: normal 12px =
Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-ra=
dius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-b=
ottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style=
=3D"margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
jBPM5.4 and Spring Integration for multiple Transaction Manager
</h3>
<span style=3D"margin-bottom: 10px;">
created by <a href=3D"https://community.jboss.org/people/jutleo">leo ju=
t</a> in <i>jBPM</i> - <a href=3D"https://community.jboss.org/message/83347=
5#833475">View the full discussion</a>
</span>
<hr style=3D"margin: 20px 0; border: none; background-color: #dadada; heigh=
t: 1px;">
<div class=3D"jive-rendered-content"><h2>I refer to the official documentat=
ion, jBPM5.4 Integration spring. </h2><p style=3D"min-height: 8pt; height: =
8pt; padding: 0px;"> </p><h3 class=3D"title" style=3D"color: #4a5d75; =
font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size=
: 1.3em; text-align: justify;"><a class=3D"jive-link-external-small" href=
=3D"http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880">=
19.3.2. Spring using local transactions</a></h3><p style=3D"min-height: 8pt=
; height: 8pt; padding: 0px;"> </p><p><span style=3D"font-size: 12pt;"=
><strong>that's ok!</strong></span></p><p><span style=3D"font-size: 12pt;">=
<strong> howeve, existing system use HibernateTransactionManager, if jBPM5 =
human task error, existing system data writed database=EF=BC=8CHow to deal =
with multiple transacation manager?</strong></span></p><p style=3D"min-heig=
ht: 8pt; height: 8pt; padding: 0px;"> </p><p><span style=3D"font-size:=
12pt;"><strong>exist system config=EF=BC=9A</strong></span></p><p><bean=
id=3D"transactionManager"</p><p>      class=3D"or=
g.springframework.orm.hibernate3.HibernateTransactionManager"></p><p>=
60;     <property name=3D"sessionFactory"></p><p>=
        <ref local=3D"sessionFactory"=
/></p><p>      </property></p><p> &=
#160; </bean></p><p style=3D"min-height: 8pt; height: 8pt; padding: 0=
px;"> </p><p><strong style=3D"font-size: 12pt;">jbpm5.4 config=EF=BC=
=9A</strong></p><p style=3D"min-height: 8pt; height: 8pt; padding: 0px;">&#=
160;</p><p><bean id=3D"jbpmEMF" class=3D"org.springframework.orm.jpa.Loc=
alContainerEntityManagerFactoryBean"></p><p>    =
0;             =
  <property name=3D"persistenceUnitName" value=3D"org.jbpm.per=
sistence.local"/></p><p>         =
; </bean></p><p style=3D"min-height: 8pt; height: 8pt; padding: =
0px;"> </p><p><jbpm:ksession id=3D"ksession" type=3D"stateful" kbas=
e=3D"kbase"></p><p>         =
;           <jbpm:conf=
iguration></p><p>         &=
#160;            =
60;       <jbpm:jpa-persistence></=
p><p>           =
0;             =
            =
60;  <jbpm:transaction-manager ref=3D"transactionManager"/>=
</p><p>           &#=
160;            =
0;            &=
#160;  <jbpm:entity-manager-factory ref=3D"jbpmEMF"/></p><p=
>            &#=
160;            =
0;    </jbpm:jpa-persistence></p><p>  &=
#160;            =
60;    </jbpm:configuration></p><p>  &#=
160;       </jbpm:ksession></p><p style=
=3D"min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style=
=3D"font-size: 12pt;"><strong><br/></strong></span></p></div>
<div style=3D"background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style=3D"margin: 0;">Reply to this message by <a href=3D"https://com=
munity.jboss.org/message/833475#833475">going to Community</a></p>
=09<p style=3D"margin: 0;">Start a new discussion in jBPM at <a href=3D"htt=
ps://community.jboss.org/choose-container!input.jspa?contentType=3D1&contai=
nerType=3D14&container=3D2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
------=_Part_640675_956076546.1377149987084--
------=_Part_640676_1305861768.1377149987084
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user
------=_Part_640676_1305861768.1377149987084--