Re: mod_perl , ChildInitHandler, OpenApi

"Randolf Richardson" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Inter-Corporate Computer & Network Services
Message-ID <[email protected]>
	You can use the $r->pnotes to pass blessed Perl objects between 
handlers that run at different phases:

		Apache2::RequestUtil -- $r->pnotes
		https://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_

	(I'm assuming that you're using mod_perl2.)

> Hi, 
> 
> we're running our application build with mod_perl and MasonX::WebApp::ApacheHandler  (quite old, yes I know)
> Now I would like to use OpenAPI::Client to connect to some other web services we need. OpenAPI::Client generates code based on the api specification, but this takes 3 -4 seconds , which is far too slow to call it on every request. 
> How can I initialize the OpenAPI::Client during server startup and use the compiled code later ( i.e. access the object created)?  I'm thinking about doing this in  a ChildInitHandler, but I have no idea, where to "store" the result. We're using mom_event in production, anything to consider with this ? 
> 
> Thanks
> Rolf  
> 


Randolf Richardson - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
https://www.inter-corporate.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.