You can call your existing actor-based endpoints by exposing them through the JAX-RS endpoints using the RestServletUtilsImpl class. The response returns to the JAX-RS endpoint that handles the call, for example, wrapped into the RepresentationModel, or by using the actor endpoint.

To execute a MVC REST actor endpoint:

The following example shows how you might get a summary of the current user:

@Path("/currentUser/update")
  @POST
  @Endpoint(id = "/currentUser/update")
  public Object update() {
    return RestUtils
    .invokeActorRestEndpoint("/model/atg/userprofiling/ProfileActor/
        update");
  }

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices