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

Spring one error for multiple fields [duplicate]
Struts 2 <s:combo … />, <s:radio … />, <sx:datetimepicker …/>, … Error [duplicate]
Button that Plays Sound in Android Studio not Playing
Text to speak causing application to crash (Android studio)
Failed to resolve: com.mcxiaoke.volley:library:1.0.19 in Android Studio
Getting class addresses on reading a file java
Import Apache Commons Math library
How make a generic type in java?
Android - No error but failed to insert fragment
axis webservice java.lang.reflect.InvocationTargetException
Bitmap() is not public
Android Studio - How to open specific activities from a ListView?
Calling non abstract methods from an abstract class [duplicate]
Cannot find any information on property in Java JSP page
Getting Error while sending mail from Localhost using JSP
“Stopwatch” counting seconds (since -> to)

Categories

HOME
wso2-am
atom-editor
openstack
relative-path
electron
vmware
getelementsbytagname
at-command
sqlite-net-extensions
yarn
paw-app
amortized-analysis
graphql
sql-server-2016
retrofit
session-variables
metatrader4
ssl-client-authentication
reveal.js
nstableview
zend-framework3
windows-azure-storage
windows-phone-7
messages
zebra-printers
solaris-10
custom-wordpress-pages
opencover
mmap
cultureinfo
dxf
su
chromebook
wpfdatagrid
bootstrap-material-design
spring-mybatis
strncpy
publish
pdb
caret
amazon-kinesis-kpl
overriding
disassembling
event-driven
serverside-rendering
withings
abstract-class
sharefile
preconditions
dynamic-reports
reportingservices-2005
http-live-streaming
node-gyp
bootstrap-dialog
vao
checkboxlist
babel-core
logfiles
flickr-api
upstart
qsslsocket
veracode
slickedit
composite-key
pdfclown
cudafy.net
word-vba-mac
database-optimization
google-web-starter-kit
ctest
clang-static-analyzer
jwplayer7
superstack
fadeout
wapiti
system.management
netmq
collapse
security-testing
microbenchmark
sysinternals
tween
typekit
camanjs
zend-route
contenttype
cloud-connect
imdbpy
multiprocessor
spring-io
ftps
eventual-consistency
type-equivalence
jquery-knob
tridion-worldserver
hosts-file
netbeans-7.1
suppress
castle-monorail
photoshop-cs4
virtual-functions
dbisam





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