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

Java JNI crossplatform build
True and magnetic heading of compass in android?
JavaFX CSS styling of TextArea does not work
building and using jhears usind maven2
Is it possible to write transactional unit tests that test transactional code?
Making a Lookup Table from scratch. Need assistance
Pinpointing EditText in ListView
Finding minimum value in a collection
how to check if a user is logged in from another webapp using spring security
Printing out the least occurring elements in an array
What was freed during a GC?
Create a loop to draw vertical lines
Using datagram sockets between android app and java program
How do I stop a Camel route when JVM gets to a certain heap size?
Java JDBC Incorrect Syntax Error
How do I use a QR code result from ZXing as a string?

Categories

HOME
openlayers
mediawiki
angular-material
office365api
at-command
maven-3
tizen-web-app
leon
win32gui
angular-ui-bootstrap
windows-server
azure-storage-tables
directx
adfs
gitpitch
wheelnav.js
qt-creator
postgres-xl
collectd
circular-dependency
task
ups
decomposition
css-animations
poltergeist
bootstrap-duallistbox
brunch
large-file-upload
ecto
jspresso
calibre
pim
wallpaper
normal-distribution
environment-modules
catalog
bytecode-manipulation
uft-api
android-fingerprint-api
squib
graphenedb
mesos-chronos
botbuilder
turbogears
sencha-touch-2.3
qwt
fault
promela
rdfs
mplayer
tactic
diagnostics
r-forge
minimization
smart-table
deadbolt-2
libpng
android-textview
azure-virtual-network
trash
contact-list
markojs
nsviewcontroller
simplewebrtc
essence
hover-over
pickadate
dlna
rhino-servicebus
browser-link
marching-cubes
qdialog
wyam
rgeo
bigbluebutton
nsmutabledictionary
fscommand
website-monitoring
rake-task
jsonpickle
ng-animate
phalanger
google-reader
heisenbug
dml
mysql-error-1062
android-2.2-froyo
transcoding
web2py-modules
gwt-rpc
rabl
drools-planner
jelly
factory-method
referrer
tinn-r
angularjs-controller
quickdialog
first-responder
postgresql-performance
removeclass
php-parser
joyent
winbugs14
google-friend-connect
zend-translate
sortable-tables
asp.net-profiles
database-management
user-friendly
nerddinner
genealogy

Resources

Encrypt Message