On Tuesday 22 August 2006 04:20 am, Paolo Campanella wrote: > On Tue, 2006-08-22 at 00:52, Jay Truesdale wrote: > > > > http://www.masonhq.com/docs/manual/Admin.html#writing_a_wrapper > > > > OK, after poking around for a while, here's my guess. > > > > In startup.pl place a use lib '/path/to/my/directory/', > > then in '/path/to/my/directory', place my own package(s) with a .pm > > extension.
That's correct. You then set your handler module as your handler instead of the default mason handler (or whatever you're using) in httpd.conf. > startup.pl _is_ the wrapper. Did you read the link above? "The eg/ > directory of the Mason distribution contains a couple sample modules > that define handler() subroutines...". startup.pl is not the Handler module. It's what gets run by the apache parent process on startup (assuming you configured apache to do so). That allows you to pre-load all your modules so they are shared between apache children. > If you want to know more about such handlers, read the mod_perl guide on > http://perl.apache.org/ . -- Ryan, who runs the offshore datahaven on Sealand, recently had screenwriters come out to see if they could get ideas for a crypto/hacker movie. They were very bored. - "You mean you're just going to sit there for the next two hours and type into those little boxes?" - "More like ten hours, but yes." - "But... but... where are all the blinky lights?" ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users