NAME

JRPC::Apache2 - JSON-RPC Services in Apache2 / mod_perl runtime

DESCRIPTION

This package is a mod_perl JSON-RPC handler / dispatcher. It only contains the conventional mod_perl handler($r) callback method (see mod_perl documentation for details: http://perl.apache.org/docs/2.0/user/config/config.html ). Do not call the handler() method directly, but assign it to be used as a mod_perl handler (Servicpackage "Math" is used here for an example):

# Load Service Package (for JRPC::Apache2 to use)
PerlModule Math;
# Assign directly to a URL Location / path by
<Location /Math>
  SetHandler modperl
  PerlResponseHandler JRPC::Apache2
</Location>