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

RecyclerView GridLayoutManager first row with 2 items
Reading Linux Repositories from Third Party
why function are not getting executed in sequence?
Java - Jersey GET request returns null; equivalent URL produces correct output in browser
Deploy a WebService from the command line or a script
How do I send a variable to external scope in Thymeleaf?
NullPointerException in broadleaf AdminAuditableListener
Using Timer in a stateless EJB method to time out long-running operation
How do I make it so JOptionPane.showMessageDialog can sense multiple strings?
SQL Server mirroring_partner_instance does not have FQDN
why selenium try to connect to localhost at “X” port
Unable to evaluation expressions from Eclipse Display View while debugging decompiled code in PaxExam integration test
how to build a jar with maven for a specific OS?
xml schema validation change from CXF 2.7.14 to CXF 3.1.8
ImageView Scale To Fit Button Size
jersey error for restful API with eclipse jar file

Categories

HOME
compiler-construction
winforms
date
gitlab
gerrit
activiti
drivers
tesseract
read-eval-print-loop
android-4.4-kitkat
routes
bookshelf.js
cmd
jgroups
webpack-2
installshield
onelogin
networkx
facebook-messenger-bot
applepay
slurm
gitpitch
session-variables
numeral.js
windows-phone-7
ibm-odm
visual-studio-cordova
vaadin7
progressive-web-apps
google-cloud-speech
swingx
custom-wordpress-pages
sox
dcevm
xpages-ssjs
one-to-many
buildbot
qhull
pingfederate
buck
facebook-apps
lightswitch-2013
pdb
xmlreader
wpf-controls
event-driven
splice
opshub
estimote
fakeiteasy
unixodbc
segment
wptoolkit
babel-core
multipeer-connectivity
forever
knockout-components
font-size
media-player
hittest
titanium-android
query-performance
eventkit
pycaffe
libpng
infix-notation
simplewebrtc
sigabrt
itextpdf
netmq
energy
python-3.2
mutation-observers
arcanist
sysinternals
census
unity5.2.3
apache-commons-net
umbraco6
geonetwork
python-green
formatjs
gwidgets
c3
titanium-modules
googlemock
tld
jquery-layout
ivyde
dataservice
shellexecute
ocunit
specification-pattern
mhtml
twrequest
ocx
wse3.0
windows-phone-7.1.1
nsdatecomponents
gwt-ext
data-loss
genshi
locationlistener
appendto
jmock
remember-me
meego
libs
post-build
ajax-forms

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile