when to use multiple transaction manager in spring?2019 Community Moderator ElectionHow to round a number to n decimal places in JavaWhat is the equivalent of the C++ Pair<L,R> in Java?When to use LinkedList over ArrayList in Java?Using Transactions or SaveChanges(false) and AcceptAllChanges()?Where does the @Transactional annotation belong?Spring - @Transactional - What happens in background?What's the difference between @Component, @Repository & @Service annotations in Spring?What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?Nested Transaction using Spring and HibernateWhat is the difference between canonical name, simple name and class name in Java Class?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Is there a logarithm base for which the logarithm becomes an identity function?
Use Mercury as quenching liquid for swords?
Is there a way to make cleveref distinguish two environments with the same counter?
Does an unused member variable take up memory?
Is there stress on two letters on the word стоят
School performs periodic password audits. Is my password compromised?
Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?
Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother
How to copy the rest of lines of a file to another file
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
How do we create new idioms and use them in a novel?
PTIJ: Sport in the Torah
Rationale to prefer local variables over instance variables?
Is it a Cyclops number? "Nobody" knows!
Create chunks from an array
Idiom for feeling after taking risk and someone else being rewarded
Finding the minimum value of a function without using Calculus
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
How should I solve this integral with changing parameters?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
How can a demon take control of a human body during REM sleep?
Does the US political system, in principle, allow for a no-party system?
I am the person who abides by rules, but breaks the rules. Who am I?
when to use multiple transaction manager in spring?
2019 Community Moderator ElectionHow to round a number to n decimal places in JavaWhat is the equivalent of the C++ Pair<L,R> in Java?When to use LinkedList over ArrayList in Java?Using Transactions or SaveChanges(false) and AcceptAllChanges()?Where does the @Transactional annotation belong?Spring - @Transactional - What happens in background?What's the difference between @Component, @Repository & @Service annotations in Spring?What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?Nested Transaction using Spring and HibernateWhat is the difference between canonical name, simple name and class name in Java Class?
I understand transactional manager is used to provide transaction mgmt for database calls, what I am struggling to understand is reason/scenario under which using multiple transactional managers would be the way to go?
java spring transactions
add a comment |
I understand transactional manager is used to provide transaction mgmt for database calls, what I am struggling to understand is reason/scenario under which using multiple transactional managers would be the way to go?
java spring transactions
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of aJtaTransactionManager. In such cases, there may be muliplePlatformTransactionManagers, and aChainedTransactionManagerto co-ordinate them.
– manish
Mar 6 at 16:36
add a comment |
I understand transactional manager is used to provide transaction mgmt for database calls, what I am struggling to understand is reason/scenario under which using multiple transactional managers would be the way to go?
java spring transactions
I understand transactional manager is used to provide transaction mgmt for database calls, what I am struggling to understand is reason/scenario under which using multiple transactional managers would be the way to go?
java spring transactions
java spring transactions
asked Mar 6 at 13:34
yolob 21yolob 21
508
508
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of aJtaTransactionManager. In such cases, there may be muliplePlatformTransactionManagers, and aChainedTransactionManagerto co-ordinate them.
– manish
Mar 6 at 16:36
add a comment |
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of aJtaTransactionManager. In such cases, there may be muliplePlatformTransactionManagers, and aChainedTransactionManagerto co-ordinate them.
– manish
Mar 6 at 16:36
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of a
JtaTransactionManager. In such cases, there may be muliple PlatformTransactionManagers, and a ChainedTransactionManager to co-ordinate them.– manish
Mar 6 at 16:36
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of a
JtaTransactionManager. In such cases, there may be muliple PlatformTransactionManagers, and a ChainedTransactionManager to co-ordinate them.– manish
Mar 6 at 16:36
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024377%2fwhen-to-use-multiple-transaction-manager-in-spring%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024377%2fwhen-to-use-multiple-transaction-manager-in-spring%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
A well-designed application should not require multiple transaction managers. A single transaction manager is usually enough. Multiple transaction managers may be required when multiple transactional data sources are in use and one or more of them do not support JTA, which precludes the use of a
JtaTransactionManager. In such cases, there may be muliplePlatformTransactionManagers, and aChainedTransactionManagerto co-ordinate them.– manish
Mar 6 at 16:36