Hi. If I have a service written in java, why or why should I not call
another service (also written in java) directly?

-- start code --
public static Map serviceA(DispatchContext dctx, Map context) {
  ...
}

public static Map serviceB(DispatchContext dctx, Map context) {
  ...
}
-- end code --

For example, to call serviceB from serviceA, is it more advisable to access
it via
  dispatcher.runSync("serviceA", context)
or can I just call it directly like so:
  serviceB(dctx, context)


Thanks

~ ian

Reply via email to