on 10-25-2007 10:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.