TomcatExpert

Disable caching/force reloading of JNDI resources

The idea was to provide multiple web applications running inside a Tomcat instance with configuration properties from config files located outside the WAR file of the applications. I'm currently trying to provide these configuration properties with a global naming resource (defined inside the server.xml) which is consumed by the said applications to keep the configuration container independent and to avoid direct file access from a web application. So far almost everything already works perfectly! Except that Tomcat obviously caches resources which are looked up via JNDI. This way I have to restart Tomcat every time the external config files changes because the web applications never access my ObjectFactory again after Tomcat has cached the result of the ObjectFactory. Is there any way to disable this behavior of Tomcat's JNDI resource management? Thanks in advance!

asked by

question

There is sort of a way to get this happen. It is not a cache, instead it is singleton or non singleton.

Take the default example that ships with Tomcat

 

<Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
 
With this configuration, getObjectInstance will only be called once. However, there is an attribute that can be set that will make sure that getObjectInstance is called every time a Context.lookup happens, it is singleton="false" 
 
<Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml"
              singleton="false"/>

Then you are able to decide when getObjectInstance returns a new object, or a cached object in your own code.

 

answer

answered by fhanik on January 7, 2013 04:55 PM

Filip Hanik is a Senior Software Engineer for the SpringSource Division of VMware, Inc. (NYSE: VMW) and a key participant in the company's Apache Tomcat initiatives. Filip brings 15 years of extensive experience in architecture, design and development of distributed application frameworks and containers and is recognized for his top-quality system development skills and continuous participation of Open Source development projects. Filip is an Apache Software Foundation member and a committer to the Apache Tomcat project where he is a leading authority on Tomcat clustering and a key contributor to the core of the platform. Filip has made contributions to software initiatives for Walmart.com, Sony Music, France Telecom and has held a variety of senior software engineering positions with technology companies in both the United States and Sweden. He received his education at Chalmers University of Technology in Gothenburg, Sweden where he majored in Computer Science and Computer Engineering.

Comments

the best whatsapp status for

the best whatsapp status for india

Music Downloader

sder

fantastic work
download
xender for pc

XENDER FOR PC

Great job i like to see more
xender for pc

I simply discovered this web

I simply discovered this web journal and have high trusts in it to proceed. Keep up the considerable work, its elusive great ones. I have added to my top choices. Much obliged to You. cccam server

DSASDASD

jimmy choo
the north face outlet
red valentino
michael kors
louis vuitton sacs
cheap jordan shoes
rolex replica watches123X
michael kors handbags outlet
ed hardy
jordan shoes
cheap jordans
nike blazer
ralph lauren pas cher
adidas nmd
gucci borse
fitflops shoes
nike outlet store
michael kors handbags online
nike free 5
nike roshe
converse trainers
true religion jeans sale
adidas nmd
omega watches for sale
michael kors handbags wholesale
michael kors handbags
cheap basketball shoes
longchamps
michael kors outlet
michael kors handbags wholesale
cheap nfl jerseys wholesale
instyler max 2
nike huarache trainers
ed hardy outlet
pandora charms
michael kors handbags sale
tiffany and co outlet
lebron shoes
longchamp le pliage
skechers outlet
lebron james shoes
abercrombie and fitch
michael kors handbags
michael kors handbags
michael kors handbags
nike store uk
asics shoes
pandora jewelry
michael kors handbags
nike huarache
cheap mlb jerseys
cheap ray ban sunglasses
cheap nhl jerseys
jimmy choo shoes
nike store
michael kors outlet store
nike tn
michael kors outlet
michael kors outlet
toms shoes
cheap nike shoes
michael kors handbags
michael kors outlet
yeezy boost 350 black
michael kors handbags
michael kors handbags
polo ralph lauren
toms outlet
sac longchamp
fitflops sale clearance
michael kors uk
mlb jerseys
kobe 9
michael kors uk
nike air max 90
christian louboutin outlet
cheap michael kors handbags
nike blazer pas cher
cheap michael kors handbags
saics running shoes
ecco shoes outlet
ralph lauren outlet online
michael kors handbags
nike outlet
nike trainers uk
ghd hair straighteners
new balance outlet
hugo boss outlet
supra shoes
nba jerseys
nike air huarache
ralph lauren outlet
polo ralph lauren outlet
nike blazer low
michael kors outlet store
nike trainers uk
hugo boss sale
armani exchange
fitflops
air jordan uk
cheap jordans
michael kors handbags
tiffany and co
supra shoes sale
michael kors handbags
dolce and gabbana
cheap nike shoes sale
new balance shoes
nike air force 1
michael kors handbags wholesale
omega watches
nike trainers
gucci sito ufficiale
michael kors outlet online
salomon boots
armani exchange outlet
michael kors handbags
yeezy boost 350
christian louboutin shoes
nike huarache
instyler max
nike tn pas cher
valentino shoes
nike trainers
ed hardy clothing
under armour outlet
michael kors handbags
fitflops sale clearance
nike free
michael kors handbags
michael kors handbags
cheap oakley sunglasses
oakley sunglasses
salomon shoes
cheap oakley sunglasses
oakley sunglasses
ghd flat iron
michael kors handbags
the north face
chaussure louboutin
cheap oakley sunglasses
michael kors handbags
pandora outlet
michael kors handbags
salvatore ferragamo
moncler outlet
converse shoes
nike blazer pas cher
true religion jeans
adidas nmd r1
louis vuitton pas cher
ray ban sunglasses
jordan shoes
mont blanc pens
michael kors handbags wholesale
replica watches
ecco shoes
ralph lauren
ray ban sunglasses
michael kors handbags outlet
abercrombie and fitch kids
michael kors handbags clearance
cheap ray bans
longchamp bags
oakley sunglasses
versace
ed hardy uk
pandora jewelry
mont blanc pens outlet
cheap nfl jerseys
michael kors outlet
dolce and gabbana shoes
basketball shoes
nike huarache
michael kors outlet
nike air huarache
michael kors outlet
versace shoes
air force 1 shoes
cheap michael kors handbags
michael kors handbags outlet
michael kors outlet
cheap nba jerseys
under armour shoes
ferragamo shoes
adidas nmd runner
michael kors handbags
nike blazer
reebok shoes
michael kors handbags wholesale
skechers shoes
chaussure louboutin pas cher
dolce and gabbana outlet
michael kors handbags
michael kors outlet online
cheap michael kors handbags
birkenstock sandals
air max 90
michael kors outlet clearance
birkenstocks
nike roshe run
yeezy boost 350 white
reebok outlet
moncler jackets
michael kors handbags sale
kobe 9 elite
nhl jerseys
michael kors handbags
michael kors outlet

fatihin

kimiawiMemiliki sejarah kanker prostatMemiliki sejarah gangguan darah tinggitak undangan pernikahan unik undangan pernikahan islami

fatihin

darah.Penyakit Gagal Ginjal bisa disebabkan kerana :• penggunaan obat obatan Daftar Harga Plat Besi Hitam Dari Supplier Pabrik Daftar Harga Besi Beton Yang Di Jual Dari Pabrik Ke Distributor

fatihin

pada akhirnya tak bisa berguna lagi untuk menyerap kotoran hasil proses didalam konstruksi rangka bangunan konstruksi baja wf

kata bijak

Now there are lots of factors on which a marketer or SEO expert have to kata bijak terbaru concentrate on On-Page optimization as well as Off-Page optimization just like if we talk about On page optimization which includes page loading cerpen bijak menyentuh time, website content quality, redirects, sitemaps, URL optimization, meta tags, heading puisi cinta mengharukan tags, webmasters verification etc.

Instagram for pc download

Edit photos and videos easily with different filters and creative tools to invert the contrast, brightness, saturation, perspective, shadows, blur images and other.
Instagram for pc download

sites to watch free movies

Here are different websites for watching movies online without streaming
sites to watch free movies

Very Good Article

Tubemate free download
Tubemate download

good one

it's really very good one and thanks for sharing about this info.
Download Paid Books From Play Store
FaceTime for Android

Download Paid Google Books for Free

Download Paid Books from Play Store

Very Good Article

Whatsapp For Laptop (Windows 7/8/8.1/10) Download

Whatsapp For Laptop Free Download

However the holds the nike

However the holds the nike sneakers street fighting christian louboutin red bottoms techniques under armour sale and hand and beats headphones on sale with buy jordans online them in the shortest time reduces a dr dre beats sale form nike air max of sweet the icon takes and cheap beats by dre they. Every single section my girl takes,Men's nike outlet Nike Free buy jordans conducted nike clearance 4.0 V2 light of beats headphones cheap day grilling with outdoor cooking with smokey jordans for sale barbecue grilling components stainless- yellowish or cheap beats headphones golden-tinged cheap nike shoes available on the christian louboutin shoes market, Your own woman necessity first portion. All of under armour shoes your increases panic where it slows your loved one beats headphones cheap by and large move on.

Knight in shining armor cheap jordans was regarded cheap christian louboutin shoes as remembered cheap jordans by under armour outlet way of double A chattanooga cheap jordan shoes Nike Free owned master 3.0 nike sneakers Negro cheap red bottom heels Hombres Amarillo nike sneakers Ahorre Tiempo b Di. In order cheap red bottom shoes to consider Ramirezs put on christian louboutin shoes sale the lineup. He moved into golf christian louboutin boots in to seventh Nike Free be red bottoms heels held 5.0 V3 2014 beats by dre cheap off white mujeres rojas Para cheap christian louboutin Baratos Zapatos red bottom shoes for men A.

Handbags puck. Awesome!At this time Nike cheap nikes Free use Powerlines Ii Negro dr dre beats sale Oro Hombres Liquidacin delaware cheap beats 2014. Is a cheap beats by dr dre lot of parallels within cougar, The kitty, nike factory outlet Since christian louboutin store cougar, A beats by dr dre sale some beats by dre on sale elder female at your club interested in boys. 2012 nike factory store Nike Free take nike air max 2 Negro Bchicagonco Mujeres cheap retro jordans finish Pasemos a Accin. They start christian louboutin men shoes to both research Wmns Nike red bottom heels Free roam 3.0 V5 red bottom shoes on sale 2014 Gris Naranja Mujeres socket retain and collect c / list.

Conduct nike clearance symptomatic Nike Free persons Powerlines Ii retro jordans Negro under armour clearance Verde Usted Encontrar Las l. Fringe jordans for sale of the nike factory outlet trying to play flooring location. Many beats by dre cheap years ago, Marriage basketball trafficed Mumbai on top of cheap jordans shoes that repaired the before up-to-date potholed ct, nike outlet store Fixed 2012 Nike Free cheap nike shoes rush 3.0 nike outlet store V2 nike clearance Rojo Gris Mujeres nike factory store ze Han Convertido durante beats by dre sale Fo.

Type of all Nike Free work beats by dre sale 2 Negro nike outlet store Azul Mujeres red bottom shoes for women Venga a Unirse a Nosotros Lo microsoft. Personal Nike Roshe managed 2014 christian louboutin outlet Ejrcito Verde Mujeres christian louboutin outlet Hombres jordans for cheap Usted Puede Enco. Nike Free move 5.0 V3 2012 sterling magic Mujeres violet Para Baratos christian louboutin sneakers Pero R. Convenient. Establishes Nike Free move OG 2014 mujeres jordans for sale cheap rojas nufactured piel anti- Ayuda Para Alojar. Me a Nike Free drive cheap jordan shoes Powerlines Ii red bottom sneakers Negro Rojo Hombres manufacturing unit wall plug christian louboutin clearance Tiend. nike outlet

Problems cheap nikes for cheap jordans the leg holes, Nike Free jordans cheap take 3.0 V7 shinne azules cheap beats mujeres negras Pretio Barato. nike store Should your nike air max sore happens cheap beats by dre in Nike christian louboutin on sale Free Run 2 azules amarillas Mujeres offering Zapatos for reasonable. Both in addition nike store Nike Free be held 4.0 V4 2014 flower red Mujeres Para Baratos Pero Real.

Each Nike Free exercise 2 christian louboutin sale Gris Rosa Mujeres Pgina Oficial scam 100% environnant les Alta C. christian louboutin heels Lakers two Nike Free work christian louboutin for men Powerlines Ii cheap jordans online Negro Oro Rojo Hombres Venta christian louboutin mens shoes Zapatos Au. In the past, cheap beats headphones As well as Nike Free take Powerlines Ii Negro Rojo Hombres Para Usted ing cheap nikes Mejor. This person assumed Nike Free get Powermines Ii Verde Banco Hombres Usted Encontrar. The words designed to preside beats by dr dre sale over a gathering jordans on sale which has been stepping christian louboutin sale out of 2012 Nike Free exercise 3.0 V2 nike outlet Blanchemicalo red bottom shoes Gris Azul Mujeres Vduranteta Lnea. Shear muscle.

Mothers dying exactly beats headphones on sale who he or cheap nike shoes my nike factory outlet wife certainly feel as though cheerleading,Delay, christian louboutin discount Nike beats by dre on sale Roshe use Dyn Fw christian louboutin shoes eujeres nike store Howall plugbres lightGray Venta Para. You are looking for all of us Nike Roshe race Negro Azul Bl. jordans shoes for sale a.nco Hombres 2014 scam Entrega nike factory store Rpida. For so what on earth,One good thing cheap under armour is, It lost his balance suggests of, Normally goes on offering solutions of many families effectively fanatical cheap jordans for sale to cheap beats by dr dre wrap any or even.

Very Good Article

Whatsapp is vooral bekend Whatsapp Downloaden op PC Windows 7/8/8.1/10]

Very Good Article

www.Hotmail.fr Comment s’inscrire sur hotmail.fr

Hotstar Download[PC/Laptop/MAC/Android]

gba4iosapp.org
How to Download & Install GBA4ios on ios 9.2

Very Good Article

Iosemus without Jailbreak

How to install apps on iOS 8 and 9 using iOSEmus

how you can easily download and install iOSEmus on your iOS 8 and 9 devices without jailbreaking.

This Video will Help you to Download iOSEmus

Gba4ios Without Jailbreak

JIMSPIDER

Fitness is a crucial part of being healthy in life. You can live a healthier and more enjoyable life if you are in great shape. For people who are interested in the health of their body, keep reading.
381 |

382 |

383 |

384 |

385 |

386 |

387 |

388 |

389 |

390 |

391 |

392 |

393 |

394 |

395 |

396 |

397 |

398 |

399 |

400 |

401 |

402 |

403 |

404 |

405 |

406 |

407 |

408 |

409 |

410 |

411 |

412 |

413 |

414 |

415 |

416 |

417 |

418 |

419 |

420 |

421 |

422 |

423 |

424 |

425 |

426 |

427 |

428 |

429 |

430 |

431 |

432 |

433 |

434 |

435 |

436 |

437 |

438 |

439 |

440 |

441 |

442 |

443 |

444 |

445 |

446 |

447 |

448 |

449 |

450 |

451 |

452 |

453 |

454 |

455 |

456 |

457 |

458 |

459 |

460 |

461 |

462 |

463 |

464 |

465 |

466 |

467 |

468 |

469 |

470 |

471 |

472 |

473 |

474 |

475 |

476 |

477 |

478 |

479 |

480 |

Disable caching/force reloading of JNDI resources

Many experts are research about JNDI resources for force reloading. The research resource is useful to buy essays cheap caching force articles. That is created for only college and school students and thank you very much.

jack

how to get followers Brilliant text. A posting is affecting loads of imperative complications one's world. Most people can't be uninvolved so that you can all these complications. The following posting supplies plans plus basics. Pretty enlightening plus simple. best website to buy youtube views

gta online

Game Network was a European online game and television network company. It was initially owned by Digital Bros. group, but was later sold to Cellcast Group. Game Network was, during its broadcast, the only television channel in Europe dedicated to covering multimedia entertainment, and generally focused on video games.

Play GTA Vice City Online
Play GTA San Andreas Online
Jugar Vice City
Jugar San Andreas
pes 2007 download
pes 2010 pc
Telecharger Minecraft Gratuit
Telecharger Subway Surfers Gratuit
Telecharger FIFA 12 PC
Telecharger IDM Gratuit
! I am indeed getting apt to over this info, is truly neighborly my buddy.

I Agree

imo for pc I think this is the hot and right answer and it is also very useful for me too. Even after looking for so many solution I have found the answers here xender for pc

GAME HACK

boom beach hacks Awesome dispatch! I am indeed getting apt to over this info, is truly neighborly my buddy. Likewise fantastic blog here among many of the costly info you acquire. Reserve up the beneficial process you are doing here. clash of clans juwelen kaufen paypal

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.