Skip to main content

Product: OpenFusion CORBA Services

Version: ALL

 

Description:

How to run two Service instances on the same machine?

 

Resolution:

All you need to do is to add a second service instance to the service using the OpenFusion Administration Manager.

To do this you need to right click on the appropriate domain (localhost is the default) and select 'Add Service'. You then need to specify a name of the service that is unique within the domain. For example you could call it Service2

This creates a generic service containing a ProcessSingleton object. You then need to add the Singleton object for the service you want to add. You need to right click on the Service2 node and choose 'Add Singleton' and add the appropriate Singleton to the service.

Before you can start this service you need to specify resolve names for the Singleton object. You will need to go to the 'CORBA' tab and fill this in.

You can achieve the same functionality on the command line by using the adminMgrTool which is in the bin directory of the installation.

To add a service to a node:

adminMgrTool -aServ <node name> <service name>
The <node name> is a dot('.')-separated hierarchical name to which the service is added, e.g. OpenFusion.localhost

To add a singleton to a service:

adminMgrTool -aSing <service name> <singleton name>

The <service name> is a dot('.')-separated hierarchical name to which the singleton is added, e.g. OpenFusion.localhost.NotificationService.
The <singleton name> should match a filename in ${OF_Install_Dir}/xml/templates/singletons, but without the .xml, e.g. NotificationSingleton

To change the resolve name:

adminMgrTool -ap <singleton name> ResolveName <new resolve name>

For example, to change the resolve name on the NotificationSingleton you would use the command 

adminMgrTool -ap OpenFusion.localhost.NotificationService.NotificationSingleton ResolveName NotificationService2

This will change the resolve name to NotificationService2


#openfusionopenfusion.services
#KnowledgeDocs
#OpenFusion