Spring Transaction Management: Finally Understandable | by

  Рет қаралды 47,530

Marco Behler

Marco Behler

Күн бұрын

Пікірлер: 28
@maasmans
@maasmans 2 жыл бұрын
All your material is so easy to follow and comprehensible. Thanks to you I finally feel like a I have the ability to actually understand Spring. Thanks so much.
@AyratVideo
@AyratVideo Жыл бұрын
Nice smile! So look as Alex ) And great stuff! Best explanation ever! Thanks so much.
@pawenowinski2072
@pawenowinski2072 2 жыл бұрын
Great job ! FInally get it ! Thanks : )
@iSkvort
@iSkvort 4 жыл бұрын
One note it uses CGLib only if you have classes. If your beans are implements interface then spring creates a dynamic proxy for bean which is much faster than cglib.
@alexsav7427
@alexsav7427 4 жыл бұрын
Thanks for the explanation. I finally understood.
@rahulshivhare5682
@rahulshivhare5682 4 жыл бұрын
What's the Difference in manual and spring initiated propagation ?
@amargupta1728
@amargupta1728 4 жыл бұрын
Hi, Nice I but just want to know that why proxy objects will be created for calling transactional?
@GuitarreroDaniel
@GuitarreroDaniel 4 жыл бұрын
I think is a lot easier to set up your DataSource in application.properties than inside a class. Just makes everything look much cleaner.
@chukwuebukag.anazodo6915
@chukwuebukag.anazodo6915 5 жыл бұрын
Hi Marco, Does Transactional annotation also handle race condition problems
@MarcoBehler
@MarcoBehler 5 жыл бұрын
Hi Chukwuebuka, what kind of race condition problems are you thinking about? Transactional really just opens a databaser transaction, that's it. So it all depends on your isolation levels.
@chukwuebukag.anazodo6915
@chukwuebukag.anazodo6915 5 жыл бұрын
@@MarcoBehler Does is lock a row or entire table until the transaction is committed?
@josephmbimbi
@josephmbimbi 3 жыл бұрын
the dislike / like ratio is unfair i think. That is a great video
@neetigupta5468
@neetigupta5468 5 жыл бұрын
nice explanation 👌 thanks
@LvyZ666
@LvyZ666 5 жыл бұрын
Creepy smile at the beginning. Good stuff nonetheless!
@MarcoBehler
@MarcoBehler 5 жыл бұрын
Takes a while to get to an authentic smile in front of a camera :D
@seyedalihejazi4926
@seyedalihejazi4926 4 жыл бұрын
but lovable
@OzoneGrif
@OzoneGrif 6 жыл бұрын
When you write the transactionManager, shouldn't you inject the database bean, instead of calling database() directly? It feels like you instance two database driver here.
@MarcoBehler
@MarcoBehler 6 жыл бұрын
That's a good question! The answer is that spring does some magic here, i.e. whenever it creates your configuration class, it actually creates a cglib proxy of that class which basically "caches" every method invocation. That's why there won't be multiple instances of the data source, only one, even if you call the method directly, instead of injecting
@mkyrychenko
@mkyrychenko 5 жыл бұрын
@@MarcoBehler but you will be not able to mock the database bean and inject it as parameter, if you need this... Better approach IMHO is to inject in order to have controlled and easy mockable call flow
@zakb.7108
@zakb.7108 4 жыл бұрын
I was actually asking myself the same question when finding those method calls on the books, seems like spring "proxy" calls and you'll get the same instance every time.
@Dev_pig
@Dev_pig 5 жыл бұрын
Oh, cglib is used by spring. Thank u for your great tutorial :)
@MarcoBehler
@MarcoBehler 5 жыл бұрын
There you go :) Glad you like it
@Chesteryoshka
@Chesteryoshka 5 жыл бұрын
only if it can't use proxy based on interfaces
@gudurusivareddy6363
@gudurusivareddy6363 5 жыл бұрын
awesome
@rrr83
@rrr83 3 жыл бұрын
Thanks for the explanation! You should put your own udemy course to get more audience!
Spring & CGLIB: Finally Understandable | Spring Core - Masterclass
9:25
Spring & Spring Data JPA: Managing Transactions
10:34
Thorben Janssen
Рет қаралды 66 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
TryHackMe - Advent of Cyber 2024 - Day 23 Walkthrough
11:12
Tib3rius
Рет қаралды 4,1 М.
Spring Boot Transaction Propagation Tutorial
22:18
JavaInUse
Рет қаралды 35 М.
Live Coding #1: Stripe payment integration - By @MarcoCodes
1:20:17
Marco Behler
Рет қаралды 61 М.
Do you know Distributed transactions?
31:10
Tech Dummies Narendra L
Рет қаралды 232 М.
What is Spring Webflux and when to use it?
17:46
Defog Tech
Рет қаралды 247 М.
Introduction To Transaction Management
35:32
in28minutes
Рет қаралды 122 М.
How Spring Security Authentication works - Java Brains
19:36
Java Brains
Рет қаралды 304 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН