Re: [Catalyst] loading modules before the server forks

2007-11-08 Thread Andy Grundman


On Nov 8, 2007, at 4:21 PM, Octavian Rasnita wrote:

Ok, thank you. I know how to load the modules, but I just wanted to  
know if all dependencies are loaded before server fork.


Yeah, they are.  Catalyst will load all your controllers, models, etc,  
and those will load all their modules, and so on.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] loading modules before the server forks

2007-11-08 Thread Octavian Rasnita
Ok, thank you. I know how to load the modules, but I just wanted to know if 
all dependencies are loaded before server fork.


Octavian

- Original Message - 
From: "Andy Grundman" <[EMAIL PROTECTED]>

To: "The elegant MVC web framework" 
Sent: Thursday, November 08, 2007 9:39 PM
Subject: Re: [Catalyst] loading modules before the server forks




On Nov 8, 2007, at 2:32 PM, Octavian Rasnita wrote:


Hi,

If I have a Catalyst application and I use

PerlResponseHandler Application::Name

in httpd.conf

and I load that module in a startup.pl file, what happends with the 
modules that might be loaded by that Catalyst app?
Are they also loaded before the server forks? Or I will need to load 
them manually one by one in the startup.pl?


All you have to load is your application, i.e.:

PerlModule MyApp

Everything is then loaded before Apache forks any children.

See the config example here:

http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.11/lib/Catalyst/Engine/Apache2/MP20.pm

-Andy

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/ 



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] loading modules before the server forks

2007-11-08 Thread Andy Grundman


On Nov 8, 2007, at 2:32 PM, Octavian Rasnita wrote:


Hi,

If I have a Catalyst application and I use

PerlResponseHandler Application::Name

in httpd.conf

and I load that module in a startup.pl file, what happends with the  
modules that might be loaded by that Catalyst app?
Are they also loaded before the server forks? Or I will need to load  
them manually one by one in the startup.pl?


All you have to load is your application, i.e.:

PerlModule MyApp

Everything is then loaded before Apache forks any children.

See the config example here:

http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.11/lib/Catalyst/Engine/Apache2/MP20.pm

-Andy

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] loading modules before the server forks

2007-11-08 Thread Octavian Rasnita

Hi,

If I have a Catalyst application and I use

PerlResponseHandler Application::Name

in httpd.conf

and I load that module in a startup.pl file, what happends with the modules 
that might be loaded by that Catalyst app?
Are they also loaded before the server forks? Or I will need to load them 
manually one by one in the startup.pl?


Thanks.

Octavian


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/