cancel
Showing results for 
Search instead for 
Did you mean: 

Force execution on specific JVM

Former Member
0 Kudos

Hi,

How do I force my java web application to run on a specific JVM? Occasionally, applications do not run successfully across all JVMs because of setup errors. It would be helpful to check that an application is running correctly on all JVMs by targeting each one specifically via the URL.

Thanks,

Kevin

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not quite sure what you are asking for

Your best bet is to retrieve the JVM properties from the System object in you class and halt execution with an error message if it is not as you would like.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()

Note that most JVM should be running the application correctly (and in many cases when it doesn't it is the developer utilizing non-supported functionality, e.g. internal sun classes, creating threads in Java EE applications and so on).

Regards

Dagfinn

Former Member
0 Kudos

Hi Kevin,

To my best of knowledge SUN expects all JVM to be implemented in same way. But some vendors of JVM, improves implementation for their on products eg. IBM jike perform better math operations as they calim.

I would suggest you to approach Sun Micro Systems of your native country for more details on this.

regards

Vivek Nidhi.