Title: RE: Removing dependency on AXISCPP_DEPLOY and axiscpp.conf forsimple_axis_server

Yes, I found this last night.  This should allow me to do elminate the runtime dependencies on  AXISCPP_DEPLOY and axiscpp.conf.  I'll just set a special key with a dummy value of everything was specified on the simple_axis_server command line, so that readConfFile(), which is always called from Axis::init_module() can detect that reading the file is not necessary.  Of course, it will be backwards compatible, so that if nothing is specified on the command line, the config file will be read and the values extracted from there instead.

Thanks to Adrian and Henrik for the advice!  I'll be able to work on this in a few days and reply with a patch, then.

--
Bill



-----Original Message-----
From: Adrian Dick [mailto:[EMAIL PROTECTED]]
Sent: Thu 9/14/2006 1:00 AM
To: Apache AXIS C Developers List
Subject: Re: Removing dependency on AXISCPP_DEPLOY and axiscpp.conf forsimple_axis_server

Hi,

A configuration API was produced a while back, which I believe can provide
this capability.

Using the class AxisCPPConfigDefaults you can specify the various
properties you would find in axiscpp.conf.
Having just taken a quick look, you should find this class well documented
on how to use it correctly.

Regards,
Adrian
_______________________________________
Adrian Dick ([EMAIL PROTECTED])

"Henrik Nordberg" <[EMAIL PROTECTED]> wrote on 14/09/2006 05:44:11:

> I think it would quite easy and worthwhile to do.
>
> Cheers
>  - Henrik
> ----- Original Message -----
> From: William D. Strathearn
> To: Apache AXIS C Developers List
> Sent: Wednesday, September 13, 2006 7:26 PM
> Subject: Removing dependency on AXISCPP_DEPLOY and axiscpp.conf
> forsimple_axis_server
>
> I'm just starting to hack around with Axis-C and simple_axis_server.
> How difficult do you think it would be to try and eliminate the
> runtime dependency on a externally defined AXISCPP_DEPLOY
> environment variable and the contents of axiscpp.conf?
>
> Ideally, I would like to have the ability to specify all of what is
> contained in axiscpp.conf in the command line arguments passed to
> simple_axis_server, so that an on-disk file is not needed in order
> to quickly fire the server and run a few tests.
>
> The dependency on $AXISCPP_DEPLOY can be faked by passing it's value
> on the command line and setting it as an environment variable inside
> main() using putenv().
>
> I'm happy to write this patch and submit it for review, but I just
> wanted to put the idea out there for criticism, in case it has
> already been thought of and shot down for reasons of impracticality.

>
> --
> Bill


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to