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

What is the size in memory of a Clojure keyword?
Giving priority to Button press on a Dynamically Updating UI in Android
Change the font of titled border in java swing [duplicate]
how to use method on specific object from arraylist
Java Lock explanation
If else not working as expected
Caused by: java.lang.IllegalStateException: The specified child already has a parent
Angular2 http.get from Restful Webservice when i run this below code i am getting error status 200, URL null
Request getting overridden in multi request environment for filters
Jersey - Prevent the mapping of a JavaBean based on QueryParam
Confirming whether a JTextField contains values 0.5-1?
Add JButtons only to certain rows and columns in a JTable
What is Java equivalent of $ curl --upload-file $uploadFileName $upload_url
Why doesn't Java allow child object creation from parent constructor [closed]
How do I use a variable from one activity in another activity in Android?
RTT decrease when increasing the packet size

Categories

HOME
yii2
cloud
webpack
oracle11g
gremlin
kde
hp-exstream
fme
rsyslog
kalman-filter
amortized-analysis
infragistics
ojdbc
yum
azure-media-services
indesign
ios-charts
slick-slider
google-translate
modx-revolution
percona
try-catch
footer
undefined
pythonanywhere
sms-gateway
nhibernate-envers
samoa
visual-composer
xlsxwriter
dcevm
crystal-reports-2010
virtualdub
pingfederate
assistant
compatibility
jaxb2
madlib
iframe-resizer
data-manipulation
vsts-build-task
uiswipegesturerecognizer
ghost4j
fusionpbx
overriding
appfabric
jquery-bootgrid
code-search-engine
webix-treetable
unobtrusive-validation
greenrobot-eventbus
tasker
pdf-reactor
powershell-dsc
appcompat
zip4j
alphabet
yii2-extension
tropo
darcs
zendesk-app
hittest
url-pattern
removechild
ctest
xml-attribute
qpid
multiple-regression
revolution-r
ford-fulkerson
kendonumerictextbox
spim
thredds
metaclass
varargs
browser-bugs
emailrelay
ideamart
arcanist
p2
skos
notify
operator-precedence
valueconverter
interface-orientation
frameset
venn-diagram
onsubmit
postgresql-performance
amazon-appstore
custom-backend
gnustep
psi
locationlistener
self-extracting
revisions
asp.net-profiles
user-friendly
meego
anti-piracy
premature-optimization
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