Upgrading JDK on Glassfish 9.1_02
We are using Sun Java System Application Server 9.1_02 (build b04-fcs). Currently our server uses JDK1.5. To upgrade the JDK version we tried two options:
a. download the jdk1.7 and linked /opt/SUNWappserver/jdk folder to the jdk1.7 folder.
b. edited domain.xml and changed all occurances of javaRoot to /opt/SUNWappserver/jdk1.7.
While both option work, which would be the right thing to do?