The application server template is a good place to start when building a server to run with an ORB.
The template contains commented out sample macros to create the service table, configuration table, command line option table and control function table.
Four functions are included: main, init, a service funtion, and a control function.