Skip to main content

Problem:

  • Product Name: BES AppServer
  • Product Version: 5.x
  • Product Component: Partition"s ORB
  • Platform/OS Version: All
  • JDK/Compiler Version: Same versions bundled with BES

In addition to the standard (or default) means to configure the Partition"s Visibroker ORB properties, you may be looking at other ways to pass the properties to your Partition"s ORB, say one for your development environment and another for your staging environment.

This article describes two alternative ways to go about configuring your Partition's Visibroker ORB properties.

Resolution:

 1. Using Additional VM Options

You can pass the properties (name-value pair) to the VM as additional arguments.
To do so, please follow the steps below:

i) Go to BES Console and expand the servers tree to see your Partition


ii) Right-click on your Partition and select "Configure" sub-menu.


iii) Enter your properties as shown below in the "Additional command line arguments" text box:

-Dprop_name=prop_value
or
-Dprop_name1=prop_value1 -Dprop_name2=prop_value2


iv) Press OK button


v) Restart your Partition

Note: These arguments are stored in the "nativeservice.properties" file under "nativeservice.application.arguments" property. So, you can also manually edit it if you wish.
(You can find "nativeservice.properties" under the following folder

"/var/servers/adm/properties/partitions/"

2. Using Custom Visibroker Property file

You can keep a different property file for your Partition"s ORB.
Then, you can point Partition to that file, say vbroker_custom.properties, instead of the standard "vbroker.properties".
(Make sure that your custom property file contains all the standard properties as found in "vbroker.properties")

i) Go to your Partition"s property folder (/var/servers//adm/properties/partitions/)


ii) Make a copy of "vbroker.properties" file and rename it. (e.g., vbroker_custom.properties)


iii) Add your additional properties at the bottom of the file

(DONT REMOVE ANY EXISTING STANDARD PROPERTIES)
e.g.,
prop_name1=prop_value1
prop_name2=prop_value2


iv) Modify "service.propstorage" in your "service.properties" file to point to your new custom file (i.e. vbroker_custom.properties).


v) Modify "server.orb.propstorage" in your "partition.properties" file to point to your new custom file (i.e., vbroker_custom.properties).


vi) Restart your Partition

 


#AppServer
#ApplicationServer
#VisiBroker
#BES
#Security