The transaction will end when the originating microflow end.
If you need to, you can force a transaction to end via java (community commons should have that action). But you should be really carefull with these things if you don’t exactly know what you’re doing.
I’d recommend this learning path
https://gettingstarted.mendixcloud.com/link/path/51
regards, Fabian
I find it liberating that Mendix does not bother you to much with when to open or close a db connection. Personally i would just raise the connection pool size and let Mendix handle the rest.
Cheers,
Michiel