Not sure if subject explains the problem (or not) i'm dealing with but, here 
goes. 

What i have is a SOAP Lite server set up (for development purposes) and i'm 
wondering if there is a way to make changes to files outside the "dispatch_to" 
directory that are included ("require"/"do") in myhandler without having to 
restart apache for the changes to go into effect? (or, I guess, tell 
mod_perl/apache to process each request as new rather than keep things loaded 
into memory?, if that's in deed what's happening)

I am able to get it to work, with any *.pm's in the "dispatch_to" directory 
using "Apache2::Reload" but nothing outside of that. 

The setup is as follows, 

httpd.conf:
----------------

## SOAP Server
PerlRequire /path/to/soap_server/api/startup.pl
<Location /soap_api>
    SetHandler perl-script
    PerlSendHeader On
    PerlHandler Apache::SOAP
    PerlInitHandler Apache2::Reload
    PerlSetVar dispatch_to "/path/to/soap_server/api/modules"
    PerlSetVar options "compress_threshold => 10000"
</Location>

startup.pl:
-------------------
#!/usr//bin/perl
#

use lib qw(
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach
/usr/local/lib/perl5/5.8.8
); 

1;


In /path/to/soap_server/api/modules i have my handler
handler.pm 
-------------

package myhandler;

use strict;

sub execute { 
       my($self,@soap_input) = @_;
        
       [....]
   
       require "/path/to/some/other/location/other_functions.pl;
       ## execute func in other_functions.pl
       some_other_function($args,\%bla,$arg); 
} 

1; 

In other_functions.pl also has some other "require" statements to other files 
located outside the "dispatch_to" directive. 

So, when making a change to "other_functions.pl" and anything underneath, i 
have to restart apache, even though they are outside "dispatch_to" directory, 
Is there to make changes to those files without having to restart apache each 
time a change is made? 

If you need more info, please let me know

Thanks
- b


      

Reply via email to