Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

mod_perl2 and Attribute::Handlers?

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


stephen.quinney at computing-services

Jul 20, 2005, 11:47 AM

Post #1 of 2 (264 views)
Permalink
mod_perl2 and Attribute::Handlers?

I have been attempting to use some code that utilises the
Attribute::Handlers module within mod_perl2 without success. I know the
modules work perfectly outside of the mod_perl2 environment. I am aware
that there are issues with this as it is doing work at the CHECK phase
and I've read:

http://perl.apache.org/docs/2.0/user/coding/coding.html#C_CHECK__and_C_INIT__Blocks

I have tried using PerlModule, PerlLoadModule and a startup.pl script
via PerlPostConfigRequire but none of these are having the desired
effect. Is there any hope of finding a way around this or should I
just bite the bullet and rewrite the code?

Thanks in advance,

Stephen Quinney


stas at stason

Jul 21, 2005, 1:06 AM

Post #2 of 2 (253 views)
Permalink
Re: mod_perl2 and Attribute::Handlers? [In reply to]

Stephen Quinney wrote:
> I have been attempting to use some code that utilises the
> Attribute::Handlers module within mod_perl2 without success. I know the
> modules work perfectly outside of the mod_perl2 environment. I am aware
> that there are issues with this as it is doing work at the CHECK phase
> and I've read:
>
> http://perl.apache.org/docs/2.0/user/coding/coding.html#C_CHECK__and_C_INIT__Blocks
>
> I have tried using PerlModule, PerlLoadModule and a startup.pl script
> via PerlPostConfigRequire but none of these are having the desired
> effect. Is there any hope of finding a way around this or should I
> just bite the bullet and rewrite the code?

Stephen, have you loaded the code that uses the attributes at the startup
as well? Do you have a simple test case to try? If so please pack it into
the Apache-Test skeleton:
http://people.apache.org/~geoff/Apache-Test-skeleton-mp2.tar.gz
and send it here. Thanks.

--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas[at]stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.