See: Description
| Interface | Description |
|---|---|
| ConnectionListener |
Applications can implement this interface and register it using
RemoteAccessClient.addConnectionListener(ConnectionListener listener) in order to be
notified about changes in the session connection state. |
| Class | Description |
|---|---|
| RemoteAccessClient |
Provides external system and applications with methods for remote access to mPRM services.
|
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(); } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.