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

android:fitsSystemWindows=“true” only works for one view
Winrun4j: Exceeded maximum classpath size
Duplication Criteria in Sonar
How can we read default cell format from Excel in Apache POI?
Need LWJGL Setup Guide For Eclipse
How can i calculate many week days in a month?
Get distances in miles for 2 longitudes or 2 latitudes only
Java code to PHP (base64, bytes)
Application restarts mysteriously on Websphere Liberty Profile
How to round time to nearest 15 minute in java
I can't extend a class to another class who has constructor
Animation of java.awt rectangles not acting as wanted
How to add '.' before every consonant in a string?
Issue when inserting/updating many documents at once with Mongo/Java
GSON Date Format - Handling null date in the JSON parsing
Jmeter - JSR223 Error: Can't iterate over type: class com.couchbase.client.java.query.DefaultN1qlQueryResult

Categories

HOME
multithreading
blogger
gerrit
proxy
activiti
framework7
razor
filtering
convolution
mouse
medical
mapserver
lombok
telephony
saxon
reactive-cocoa
crystal-reports-2008
wijmo
lcd
icloud-api
user-interaction
publish
madlib
winrt-xaml-toolkit
catch-all
language-concepts
normal-distribution
plsql-psp
adobe-premiere
streamsets
sqlite2
android-mediaprojection
http-redirect
gpx
errordocument
typescript1.8
domain-model
integrity
mplayer
jxcore
tactic
font-size
np-complete
quartz-composer
ableton-live
url-pattern
dstu2-fhir
qpid
php-parse-error
pyke
jfugue
tmuxinator
security-testing
deis
iiviewdeckcontroller
modalpopup
rake-task
fluentautomation
system.net.webexception
valuechangelistener
mysql-error-1062
monomac
access-rights
blending
batterylevel
first-responder
word-processor
jspinclude
asyncfileupload
nsdatecomponents
heartbeat
xdomainrequest
rfc1123
sudzc
gallio
forums
meego
multi-tier
geneva-server
commodore

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