Skip to main content

VBC 5.2.1: can"t use property manager to set vbroker.se.default.local.listener.shm propety

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker
  • Product Version: 5.2.1
  • Product Component: Core ORB
  • Platform/OS Version: HP-UX 11.11
  • JDK/Compiler Version: N.A.

VBC 5.2.1: can't use PropertyManager to set vbroker.se.default.local.listener.shm propety, CORBA::BAD_PARAM exception is thrown.

Sample Code segment looks like this:

VISPropertyManager_ptr pm = orb->getPropertyManager();
pm->addProperty ("vbroker.se.default.local.listener.shm", "false");

Resolution:

The reason for the BAD_PARAM exception is that the default server engines are set-up during ORB_init() and thus you cannot change their properties (or disable them) after ORB_init() has been called.

Alternative way to pass this property via/in code is as follows:

int my_argc = 2; char* my_argv[] = { "Sever", "-Dvbroker.se.default.local.listener.shm=false"};
// note argv[0] is always binary name
CORBA::ORB_var = CORBA::ORB_init(my_argc, my_argv); 

Old KB# 26646

#VisiBroker
#PropertyManager
#Security