Skip navigation links

Package com.prosyst.mprm.rac

This package provides API for session establishment and remote access to mPRM services by external system and applications.

See: Description

Package com.prosyst.mprm.rac Description

This package provides API for session establishment and remote access to mPRM services by external system and applications. The functionality provided by this package is available through the methods of the RemoteAccessClient class.

An external stand-alone application can use this package by including system-rac.jar in its classpath.

Here is an example of using the RemoteAccessClient:

import com.prosyst.mprm.rac.RemoteAccessClient;
import java.util.Hashtable;

.....

  public static void main(String[] args) {

    //Open session using the system account.
    hashtable credentials = new Hashtable();
    credentials.put(RemoteAccessClient.USER_PASSWORD, "system");
    RemoteAccessClient rac = RemoteAccessClient.connect("socket://mprm.acme.com:11449", "system", credentials, null);

    //Now the application can access mPRM services
    com.prosyst.mprm.admin.gateways.Control gatewayControl =
      (com.prosyst.mprm.admin.gateways.Control)rac.getService("com.prosyst.mprm.admin.gateways.Control");

    //closing session
    rac.close();
  }

.....

Skip navigation links

Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.