TomcatExpert

How to solve cache issues when use zero down time deploy tomcat 7

I'm in a very interesting situation. I'm validating the migration tomcat 6 to tomcat 7, so we can use the zero donwtime deploy.
One of the problematic situations is our cache. As we'll have two wars running at the same address int tomcat 7... the cache will be doubled! Cache today is inside servlet context.
The first idea I had was to put the cache within the global JNDI. Thus, all. War can access the same cache in the global JNDI container.
I work, but the problem came .... When I retrieve an object inserted by another war, the JVM generates another internal identifier for the same class in both wars....and so all my cast crashed!!! Especially those inside equals .....That is, within the cache I have an object of class war within thecom.empresa.Cliente ....., I have the same class does not work just right ... but the cast!Any idea how to get around this?

asked by Fernando Franzini

question

That is correct, two different web applications (even the same application deployed twice) generates to different classes, as the same class is loaded by the same class loader.

If you want your cache to remain up, while you redeploy the application, you would also have to extract the classes stored in the cache, remove them from the WAR and deploy those classes into tomcat's lib directory instead. These classes wont be reloaded, nor will they change.

 

answer

answered by fhanik on March 9, 2012 08:07 AM

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

Check Cashing

Actually interesting content writing. I must say I want to examine this sort of excellent submit. Today simply click below Check Cashing Thanks pertaining to excellent details.

Thanks for your post. I’ve

Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks.
Car accident lawyer

Hello! This is good site to

Hello! This is good site to spent time; I just stumbled upon your informative blog and wanted to say that I have really enjoyed reading your very well written blog posts. www.cleanenergyco.com.au

Thanks a lot for sharing us

Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this.
Best RO water purifier with price under 10000 rupees

ver

This is really on top of that a truly decent advertisment you honestly professional exploring because of. It will be far away from regularly now we have hazard to look into something. help with research paper

Sometimes it is very

Sometimes it is very difficult to solve the cache issues. This blog is very informative and from this I got the idea to solve the cache issues when we are using zero downtime deploy tomcat 7. Thanks for sharing best cable deals

Your blogs and each of its

Your blogs and each of its stuff is so pleasurable and valuable it is making me come back soon you can look here.

I needed to thank you for

I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post blog here

Electrical power dissertation

Electrical power dissertation web-sites on-line when you likewise be given clearly advertised with your web page. dissertation help

To be able to find out what

To be able to find out what you need to do for an excellent SEO strategy, you must first know where you and your opponent's stand in the world of current SEO methods sources tell me.

I really loved reading your

I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot you can look here!

Obviously to find engine

Obviously to find engine optimization is that it is becoming progressively more complicated, time intensive and costly to become rated for well-known and successful keywords and phrases straight from the source.

Research also reveals that

Research also reveals that some SEO companies function on great volume basis. Such SEOs offer simple SEO solutions at very low monthly prices. As a result, such SEO companies end up having a great customer turn with a huge dedicated network of sales staff sources tell me.

I read a lot of stuff and i

I read a lot of stuff and i found that the way of writing to clearing that exactly want to say was very good so i am impressed and like to come again in future for beginners.

Hi, I find reading this

Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work..
Städtereisen für Pärchen

I have been checking out a

I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog
Canadian online pharmaceuticals

If more people that write

If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.
rear extension architect

You are a really convincing

You are a really convincing writer. I can easily see this in your article.You've got a way of writing compelling information that sparks much interest. forex sebenar review

Not at all like different

Not at all like different online journals I have perused which are truly not that good.Thanks a lot More Detail

Awesome article! I want

Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject.
surveyor rv dealer in missori

This is very educational

This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
followerstoday

In fact your creative writing

In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it.
original site

This type of message always

This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post.
hotels near zona rosa kc

I am happy to find this post

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing.
hcg shots

Some truly wonderful work

Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles .
goo.gl/hDorvL

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
v tight gel

It's very interesting for

It's very interesting for reading your articles. I hope your gonna be a great authors. Please vist me back. jobdirumah penipu

Excellent article. Very

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
equation interest rate

Your article has piqued a lot

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting.
voyance-amour-eternel.com

Thank you very much for

Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more.
villa for sale Nagueles Marbella

This is a good post. This

This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works.
Kar 10th Results 2017

You’ve got some interesting

You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!.
park ranger requirements

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Seaside Residences Condo

Thanks for a wonderful share.

Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.
what do electricians do

All the contents you

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
home based business opportunity

This is a great inspiring

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Stanford Pelage Blog

Thanks for your post. I’ve

Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. pengalaman percutian

This is such a great resource

This is such a great resource that you are providing and you give it away for free.
lightweight electric scooter

Thanks for sharing the info,

Thanks for sharing the info, keep up the good work going.... I really enjoyed exploring your site. good resource...
Pay Day Loans

I can see that you are an

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. get instagram followers without password

I’ve read some good stuff

I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
spartagen xt discounts

Your content is nothing short

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.
flowers nyc

thomasqq

Genital herpes virus treatments appreciated is normally most suitable, figure out you might want to burst all the reconnect approximately old concrete saw faq and additionally cutting edge. You'll want to be very careful as soon as you combat all the concrete saw faq inside the wall structure, as if you don't the good news is chance to burst. The first couple more suitable to acquire the benefit on the guru. good Ultimate Herpes Protocol review

This article gives the light

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. Click here to visit

Thank you for very usefull

Thank you for very usefull information.. visit this link

I like this post.And I guess

I like this post.And I guess that they having fun to read this post.they shall take a good site to make a information.thanks for sharing it to me these details.

If an SEO's solutions are

If an SEO's solutions are employed by a little or recently started out company, the Optimizer is supposed to improve the item sales of merchandise (if they are new, then even to initialize the sales) so that the company comes nearer to the big competitors and then progressively goes ahead of them check out .

jams

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
www.batmanstream.top

On-page optimization methods

On-page optimization methods consist of - development of title and meta data, keyword rich material on homepage, URL applying, web design, picture optimization, etc sources tell me.

Post new comment

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