java


AbstractRoutingDataSource :- Importance of Thread Bound Transaction Context for lookup key


I am implementing AbstractRoutingDataSource in our project. From what i read
AbstractRoutingDataSource is an abstract data source implementation
that routes getConnection() calls to one of various target DataSources
based on a lookup key. The latter is usually (but not necessarily)
determined through some thread-bound transaction context.
What I am wondering is ,what is the advantage of using a thread bound transaction context to determine the lookup key? When is it ideal to use such a method. Any help would be highly appreciated. Thanks in advance :)
Briefly, Bound Threads can change the attributes of the underlying lightweight process. and Lightweight processes are not cached when the bound threads exit.
In Scheduling Context; Bound threads for System Scope and Unbound threads are Process Scope. [Docs Oracle, 2010]
System Scope: compete for CPU with other system threads (such as Kernel Threads).
Process Scope: compete for the CPU within the current process.

Related Links

Null pointer exception while event occur
Autowired field is null in spring boot application
How to opening a new class within java
Rotating image 90 degree counter clockwise in Java
Use Jenkins to swap a password parameter out when building git repo
How can I separate a single String into two parts? [duplicate]
List injection order in Spring IoC container
How can I check if two strings have the same letters, but only print the common letters once?
Work with raw text in javax.xml.transform.Transformer
Error with simple recursion in Java
How to create a set enum method (java)
Usage of equalTo(“value”,“key”) in Firebase?
Are meters and gauges in codahale metrics sensitive to the limitations of lossy sampling?
resty-gwt too much recursion exception in parent-child structure
How do I split a string into parts in Java? [closed]
Generic Array Method Class in Java

Categories

HOME
cakephp
osgi
azure-data-factory
heroku
path-finding
view
fft
sd-card
malloc
twitter-bootstrap-4
alpha
fingerprint
virtualization
windows-10-universal
metatrader4
ssl-client-authentication
qt-creator
php-7.1
event-handling
systemc
transformation
autoconf
pass-by-reference
autosys
h2db
tdd
su
wpfdatagrid
neo4j-spatial
srcset
librato
frame
stormpath
iframe-resizer
karaf
repo
gesture
neuroscience
squib
ensembles
ncalc
sql-server-agent
businessworks
angular2-meteor
skeleton-css-boilerplate
filepicker
jlink
alphabet
flutterwave
objective-c-swift-bridge
root-framework
setuptools
google-feed-api
sts-springsourcetoolsuite
elements
database-optimization
django-debug-toolbar
gridview-sorting
captivenetwork
sonarqube5.1.2
proj4js
e10s
device-orientation
npapi
gadt
tt-news
phalanger
websocket4net
centos5
c18
spring-io
spring-validator
eventlistener
wsdl-2.0
simba
mhtml
javaspaces
jquery-ui-layout
gwt-ext
spyware
vdsp
sproutcore-2
mozilla-prism
mirah
firefox-5
phonon
zune
ugc
3gp
ajax-forms

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App