How to add java extended properties for a TIBCO BusinessEvents application deployed on TIBCO Administrator using be-engine.xml?
book
Article ID: KB0076730
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
5.x
Description
How to add java extended properties for a given BE Application using be-engine.xml ?
Use Case: - You have several BE applications deployed on TIBCO Administrator. - Each application deployment uses be-engine.tra file under BE_HOME/bin as reference to create individual application specific TRA file when we deploy it in admin. - In some cases the requirement would be to set additional JVM args for specific application and not influence other applications . In this case we cannot make change in be-engine.tra file as this impacts all applications when you perform next deployment. - You can choose to change the application TRA file but that is manual change and will be overwritten when you do next deployment as original be-engine.tra from BE_HOME/bin doesn't have the same setting.
The resolution below uses be-engine.xml as an option to set JVM args for specific application.
Issue/Introduction
How to add java extended properties for a given BE Application deployed on TIBCO Admin using be-engine.xml
Environment
All
Resolution
Here in this article java.extended.properties=-Duser.timezone=UTC property is used as an example to add it to BE Application TRA file. Perform following steps to achieve the same :-
1.) First, use attached be-engine.xml file to define java.extended.properties property. One can reuse the attached be-engine.xml file and change the value to match your JVM args with timezone setting at the end. 2.) Copy this be-engine.xml file to "$BE_HOME/lib/com/tibco/deployment" folder. 3.) Reopen BE Studio and regenerate EAR for a given application for which the timezone change is needed. 4.) Remove the be-engine.xml from the location so that it will not impact other applications. 5.) Deploy the EAR in TIBCO Admin UI. You should have an option to change the java.extended.properties from admin UI under advanced section for your <application>.bar. 6.) The deployment TRA generated for your application also has updated value from the be-engine.xml. 7.) Next time you want to change the java.extended.properties you can change it in admin UI at BAR level and restart your application.