BMC - Automated way to update Java path

Bharath Kumar shared this question 10 months ago
Answered

Hi Team,

We need to figure out how to dynamicly set JAVA PATH for YF tomcat as this will stop service from starting after a OS patch (where java has changed). Currently JAVA path is set in .bash_profile.

Is there a automated way to update the Java path in tomcat configuration?

Regards,

Bharath

Comments (4)

photo
1

Hi Bharath,

There is no real way to do this via Yellowfin as it simply uses the JAVA_HOME properties either from the environment or as defined in the startup scripts. This is a common problem for all java based applications and requires manual intervention to update this.

A possible way around this might be to create a symlink to the real java version and possibly look for a new Java installation/folder upon starting yellowfin. If it detects this, then swap the symlink around to point to the new Location. It might be a fairly simplistic approach but might achieve what you are look for.

I am not sure if the OS updates log anything as to what they are going to do or have done, but if they do, then you could also search for a LOG entry in relation to JAVA and use this?

I think anyway you look at this, it will require some clever scripting.

Hopefully this will help you to achieve something that could be automated.

Regards,

Paul

photo
1

Hi Bharath,

Just checking in again on this ticket to see if you need anything else?

Regards,


Paul

photo
1

Thanks Paul, we are good now

photo
1

Thanks Bharath