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

Prime numbers no loop no recursive
JMX polling or TCP Pushing: What is better?
how can I stop the execution of the while loop with a keyboard input?
Profile neo4j database hits using java
Big O notation and not understading from class lecture
(javafx) I'm currently making an app which requires people to create an account, how can i make sure the texts fields aren't null?
Where file created in NetBeans
Can I force liquibase 3.5.1 to ignore legacy changeset checksum differences?
NoSuchBeanDefinitionException: No qualifying bean of type [duplicate]
how to add authorization in cxf
How not to lose focus?
JLayeredPane Not Appearing
Updating a javafx pane in a timing loop or other? [duplicate]
NullPointerException on start up when using Hibernate 4 with Grails 3.2.4
Bukkit: How to permentately store player and class information?
Execute for loop every 20ms

Categories

HOME
google-chrome-extension
variables
keras
ngrx
push-notification
google-play
jira
google-oauth
tizen-web-app
rdf
cakephp-2.5
gps
blueprintjs
enterprise-library-5
onelogin
azure-media-services
indesign
gitpitch
gorm
kentor-authservices
usergrid
dtrace
fortumo
quickfix
dynamics-crm-online
opentracing
contextmenu
object-detection
errorlevel
mps
sox
telerik-reporting
tibco-mdm
trading
firebase-crash-reporting
status
user-interaction
wtx
libssl
titanium-mobile
hybridauth
jmonkeyengine
host
streamsets
c11
az-application-insights
webdriver-manager
greenrobot-eventbus
gzipstream
pdf-reactor
core-plot
taffy
worksheet
python-webbrowser
drupal-6
diagnostics
nodebb
ifs
spring-mongodb
color-profile
dwscript
nested-sets
static-ip-address
bstr
packagist
rvest
two-factor-authentication
energy
freedesktop.org
maven-tomcat-plugin
r-tree
execute
jms2
teamcity-8.0
icu4j
php-ci
ios9.1
dundas
kineticjs
tt-news
aapt
valueconverter
typo3-neos
dexterity
web2py-modules
padarn
mylyn
smtp-auth
cassini-dev
typoscript2
cascalog
dbproviderfactories
amazon-appstore
mercurial-server
doh
django-tagging
yetanotherforum
gallio
xsdobjectgen
firefox-5
substrings
virtual-functions
wsdl.exe
caching-application-block

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