How to intergrate agi with tomcat

Hello sir,
how to integrate agi with tomcat without spring framework can u tell step by step process please help me