How to create a TRoRemoteDataModule that would be attached to a specific server?

Hi,

by default, all services are available via each server components.

some ideas:

  • using OnGetDispatchInfo event.
    you can get some info that can be used for checking. For example IROHTTPTransport.Location. See more about this event at this snippet.
  • protect your service with Roles.
    When administrator is logged, you can assign to him special role in Login method (Session.Roles := l_roles;)
    your someMethod also should be protected with special role like
      [RORole('adminrole')]
      [ROServiceMethod]
      function someMethod(): string;
1 Like