Questions tagged [propagation]
240 questions
544
votes
10 answers
Spring @Transactional - isolation, propagation
Can someone explain what isolation & propagation parameters are for in the @Transactional annotation via real-world example?
Basically when and why I should choose to change their default values.

MatBanik
- 26,356
- 39
- 116
- 178
102
votes
3 answers
Differences between requires_new and nested propagation in Spring transactions
I can't understand the behavior difference between the PROPAGATION_REQUIRES_NEW and PROPAGATION_NESTED propagation policies. It seems to me that in both cases, the current process is rollbacked but not the whole transaction. Any clue?

Alexis Dufrenoy
- 11,784
- 12
- 82
- 124
46
votes
1 answer
How to use spring transaction in multithread
I have a method as below:
ClassA.java
@Transactional
public void methodA(){
ExecutorService executorService = Executors.newFixedThreadPool(4);
executorService.execute(new Runnable() {
public void run() {
…

Jacky
- 8,619
- 7
- 36
- 40
43
votes
10 answers
Javascript with jQuery: Click and double click on same element, different effect, one disables the other
I have an interesting situation - I have a table row which, currently, shows it's hidden counterpart when I click the "Expand" button. The original (unhidden) row which contains the expand button also has some content in a certain cell which, when…

Swader
- 11,387
- 14
- 50
- 84
40
votes
5 answers
Capturing and Bubbling using jQuery
I am new to jQuery and I‘m trying to understand the concept of capturing and bubbling.
I have read a lot of articles, but most of them described event propagation for Javascript.
Lets assume we have the following HTML code:
…

christostsang
- 1,701
- 3
- 27
- 46
29
votes
2 answers
How to propagate Git Hooks while cloning
I've written a pre-commit hook in my central repository. When my clients clone the repository it never propagates the hooks. I would like the hooks to also be copied to my clients' repositories. My clients are Windows users, using msysgit as the git…

baluchen
- 749
- 3
- 11
- 18
27
votes
1 answer
Spring Propagation examples in layman's terms
The Spring docs do a fantastic job of describing transactional propagation properties.
However, I was wondering if there are any well-known, real-world examples available which describe each of these properties more thoroughly in layman's terms?

wild_nothing
- 2,845
- 1
- 35
- 47
22
votes
4 answers
jQuery on() stopPropagation not working?
I can't seem to get this to stop propagating..
$(document).ready(function(){
$("body").on("click","img.theater",function(event){
event.stopPropagation();
$('.theater-wrapper').show();
});
// This…

Dylan Cross
- 5,918
- 22
- 77
- 118
17
votes
3 answers
jQuery: Trap all click events before they happen?
On my page I have a lot of various elements which respond to click events.
There are times when I need to block all clicks based on some global flag.
Is there a way I can make this check in a centralized location?
Right now in each event I check for…

nebs
- 4,939
- 9
- 41
- 70
15
votes
4 answers
Rails/Mongoid error messages in nested attributes
I have a contact info class defined like this:
class ContactInfo
include Mongoid::Document
validates_presence_of :name, :message => ' cannot be blank'
field :name, :type => String
field :address, :type => String
field :city, :type =>…

Richard
- 1,146
- 1
- 13
- 24
13
votes
4 answers
How to propagate an exception in java
I am a C programmer and just learning some java recently because I am developing one android application. Currently I am in a situation. Following is the one.
public Class ClassA{
public ClassA();
public void MyMethod(){
try{
//Some code…

Surjya Narayana Padhi
- 7,741
- 25
- 81
- 130
11
votes
2 answers
Spring Transactions With Supports Propagation
I would like to understand the use of having a spring transaction with Propagation Supports. The java docs mention that if the method which has @Transactional(propagation = Propagation.SUPPORTS) is called from within a transaction it supports the…

Andy Dufresne
- 6,022
- 7
- 63
- 113
10
votes
4 answers
jquery: keep link clickable in clickable div
What I want to do is prevent the click on the div if a users clicks a link inside that div.
but without using the .click(function() {}); on the link.
Here's the code:
$('div.feature').click(function() { window.location =…

Phil
- 139
- 1
- 1
- 5
9
votes
5 answers
Such a thing as a calculation engine for C#?
Is there any calculation engine for C# that can automatically recalculate dependent fields when a value changes?
Let me freestyle for a second, I'm imagining something like this..
Field quantity = Field.Create("Quantity");
…

chillitom
- 24,888
- 17
- 83
- 118
9
votes
2 answers
css hover nested classes propagates
I know this is a classical one but I find no answer on the net:
I have this html code:
Then I have this…Some Links
Some Links

ndemoreau
- 3,849
- 4
- 43
- 55