79761633

Date: 2025-09-11 08:03:05
Score: 1
Natty:
Report link

It depends from what you are trying to acheive.

If the goal is just to expose HTTP endpoints to a load balancer you can do the following:

. Configure the HTTP connection resource with hostname set to localhost
. Use the bw.plugin.http.server.defaultHost property and set it also to localhost

The mentioned property can be set once for all by adding the following line in the bwengine.tra file:

java.property.bw.plugin.http.server.defaultHost=localhost

You can also set it at deployment time by following the explanations available in the 'Setting Custom Engine Properties in Deployed Projects' section of the BusinessWorks Administrator guide.

If the goal is to set a given hostname for each BusinessWorks engine in the runtime environment you can do the following:

. Create a Global Variable and configure it with the Service option
. Use this Global Variable to set the hostname of your HTTP connection resource
. Then at Deployment time in the Advanced tab available at the Service instance level set the Global Variable value to the desired value for each Service instance

There is no way to set the hostname dynamically and this won't really make sence because a machine can have multiple hostnames.

Regards

Emmanuel

Reasons:
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: EmmanuelM