• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 7 reload jar file without redeploy

 
Eric Stein
Greenhorn
Posts: 8
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've got a J2EE WebApp running in Tomcat 7. The .war references a .jar file in its /lib directory. Is there any way to get Tomcat to reload that .jar file without doing a full redeploy of the web app?

Thanks,
Eric

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't get my hopes up.

Allowing for the fact that the auto-redeploy facility isn't that fine-grained, there's too much chance for problems due to things like static elements within the jar's classes. That's been known to cause problems even with less ambitious attempts to do hot updates.
 
Eric Stein
Greenhorn
Posts: 8
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I'm not. I've been playing with NetBeans Lookup in Tomcat, and I was hoping I could pair the two to get new functionality without having to bounce the app. Lookup can monitor the classpath for the addition or removal of classes which implement a specific interface. I didn't figure it would work, but there's no harm in asking.

Thanks,
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic