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

2D ArrayList Index Out of Bounds
Render gray-scale pixels based on an array of values between 0 and 1
Maven build Error: Could not find or load main class
Admob live ads not appearing in libgdx application - Failed to load ad: 0
Android - Clearing intent
How to use Zuul and Spring security
convert from Stream<#Nullable T> to Stream<#NonNull T> using stream api
Element on a webpage overlay could not be accessed by locators
How To Write Two If Statements Into One Single Line (Ternary Operator)?
Set Flush mode from AUTO to COMMIT in hibernate 3.5.6
insert row having auto increment column
Coursera Markov Text Generation
API returning 200 for browser and 500 for Jsoup
Traffic Light Changing Colors based on JButton
getting a null value while trying to to access a variable's value using Expression Language in JSP
Unhandled Exception Type Java

Categories

HOME
jdo
image-processing
c#-4.0
google-api-php-client
framework7
rsync
maven-3
retrofit
networkx
synchronization
modx-revolution
moonmail
event-handling
zebra-printers
msp430
systemc
solaris-10
nhibernate-envers
nodatime
dbext
swingx
paging
physics-engine
tokenize
orleans
mps
sylius
restful-authentication
smb
fish
virtualdub
ejabberd-module
jaxb2
bpel
flink-streaming
frame
web-mining
automake
objectlistview
azure-ml
vao
modelmapper
executenonquery
apple-news
google-datalayer
pango
rails-routing
pnotify
ionicons
rdfs
tropo
recursive-datastructures
colorama
composite-key
typed-lambda-calculus
knpmenubundle
gcsfuse
quartz-composer
migradoc
word-vba-mac
deadbolt-2
angular-cache
libpng
trash
google-web-starter-kit
ctest
etsy
holder.js
pagedlist
bgp
wapiti
browser-link
pervasive-sql
r-tree
qdialog
atk4
fouc
ibaction
operation
streambase
ng-animate
java.util.concurrent
document-classification
valuechangelistener
android-2.2-froyo
transcoding
monomac
dataservice
sublist
funscript
dice
dbproviderfactories
spring-portlet-mvc
gwt-ext
libc++
file-comparison
krl
site.master
forums
avatar
post-build
data-acquisition
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