Table of Contents
There are two primary ways to create sites which can be used in Orc:
class declaration. This approach is easy for anyone
already familiar with Java, and such sites are straightforward to share
between Orc and Java code. However such sites are limited in how they
can interact with the Orc engine.
site declaration.
This approach provides full access to the features of the Orc engine.
However such sites are difficult to use from Java code.
External services (including web services) are handled using the Proxy pattern. A site implemented in Java (using one of the two techniques above) must act as the local proxy for the service, translating Orc site calls into the appropriate requests and translating responses into site return values, halts, or errors.