jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes How to set the java framework at the application level Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to set the java framework at the application level" Watch "How to set the java framework at the application level" New topic
Author

How to set the java framework at the application level

Dan Walker
Greenhorn

Joined: Jul 24, 2008
Posts: 2
I'm failry new to Java and Tomcat and I'm wondering if the java framework can be set at the application level. For instance, we have several java web applications currently deployed in the same instance of Tomcat. Currently we set the tomcat.exe to leverage the java 1.5 framework.

My question is, could I have one deployed application pointing to the 1.5 Java framework and another application pointing to the 1.6 Java framework, of course both applications would be deployed to the same instance of Tomcat. In other words instead of setting the java framework in the tomcat.exe could it be set at the application level? If so, how would one accomplish this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42628
    
  65
Hello "Dan Java"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, that's not possible. There's only a single JVM involved, and that runs on whichever Java version is specified in the startup script.

But since the Java VM is backwards compatible, it's generally not a big deal to run an existing application on a newer JVM. Are you experiencing any problems doing this?


Ping & DNS - my free Android networking tools app
Dan Walker
Greenhorn

Joined: Jul 24, 2008
Posts: 2
Ulf-

Thanks for the response. I do not have a specific issue; I was exploring this approach to appease a 3rd party application that runs with our homegrown apps.

Thanks Again for the speedy response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set the java framework at the application level