Skip to main content

Adding a new service from the command line: mfdepinst

  • February 15, 2013
  • 0 replies
  • 0 views

This article explains how to add a new service to Enterprise Server from the local command line using and configuring mfdepinst.

Problem:

If you need to deploy a service to a number of servers, you might want to be able to do from the command line. You can use imtkmake to deploy your application, and this is well documented. imtkmake will pack all your application into a .car file and send it to the remote server, where mfdepinst will:
  • copy the application files (*.int , ...) by unpacking the .car file
  • copy the .idt file to a directory
  • add a Package
  • add a service assign Package and Listener to it
  • do this on the right Enterprise Server
  • do this on the right machine

But how can you configure mfdepinst to assign another than the default path of the IDT file and to the service's Package and the right Listener to your Service?

Resolution:

When you use mfdepinst from the command line, there must always be a .mfdeploy file in the parent directory to the .car file. You can configure what server and what listener mfdepinst is using by editing .mfdeploy to have correct settings for you (you can copy the default file from $COBDIR/deploy and change it to your convenience):

MFDS=localhost

MFES_SERVER=ESDEMO

MFES_LISTENER=Web Services and J2EE

(notice that versions earlier than 5.1 might contain different values)

Where:
  • MFDS should have the name or IP address of the machine running Micro Focus Directory Services (MFDS) where you want to add the new Service.
  • MFES_SERVER should have the name of the Server / Region registered with that MFDS in that machine where you want to add the new Service.
  • MFES_LISTENER should have the name of the listener that will be used for that Service. Depending on the version of Enterprise Server, the default name will be "Web Services" or "Web Services and J2EE" (the name has been changed after version 5.0 Wrappack 4).

Also the current directory will be used as dir for the IDT file in the Package that is created for the new Service.

Incident Number: 2191870

Old KB# 14594