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

Sax Parser No method found to parse
Permission Denial when trying to access contacts in Android
Guava eventbus dispatching error
Having trouble making circle calculator
Understanding how variable point to value in Java
Scala symbol to java enum
Draw a fence in Java using for loops
Return all subsequences of an array-like with only consecutive values in Java
Is it possible to run join serially using quatz in Xml configuration
Add JComponents in the middle of the JPanel
How constructor overloading works
How to get a variable from another class without calling a constructor?
Spring Data JPA to handle a complex type
application properties for different string connection to mysql
Graphics Issue with JFrame in a Game Engine
Method local inner class vs inner class

Categories

HOME
ms-access
compiler-construction
date
pypi
webpack
c#-4.0
iot
analysis
binary-tree
opengl-es-2.0
azure-media-services
basic
gorm
offline
after-effects
saxon
textfield
jprofiler
bootstrap-tour
crosstab
buildbot
javacv
pepper
facebook-access-token
jaxb2
tinymce-4
galsim
google-qpx-express-api
vsts-build-task
jquery-bootgrid
swisscomdev
space-complexity
dynamics-crm-2013
avro4s
spring-security-kerberos
turbogears
unixodbc
modelmapper
s
rails-routing
worksheet
dropbox-php
integrity
snmptrapd
np-complete
media-player
lync-client-sdk
medium.com
gstreamer-0.10
dataview
jfugue
cartesian-product
mutation-observers
tarjans-algorithm
varargs
system32
notify
kineticjs
nstableviewcell
tt-news
qcodo
rdtsc
asp.net-web-api-odata
id3v2
googlemock
openexr
rebol3
transcoding
concurrent-collections
oracle-warehouse-builder
mcts
geos
django-nonrel
jelly
free-variable
trusted
cisco-jtapi
coderush
boost-filesystem
php-parser
qt-jambi
servicehost
calling-convention
actionview
cxxtest
suppress
preference
ti-dsp
noscript

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile