102Re: [soaplite] dispatch_to
- Mar 9, 2001Ray Rizzuto wrote:
> Is it possible, using the Daemon process version of SoapLite, toWould it be possible to put these expensive operations into a BEGIN
> dispatch_to a particular instance of a package? I.e. if the package
> is called Demo, could I do something like:
> my $demo = new Demo;
> my $daemon = SOAP::Transport::HTTP::Daemon
> -> new (LocalAddr => 'saw', LocalPort => 1025)
> -> dispatch_to($demo)
> The reason I want to do this is that the Demo object has some
> expensive operations to do during construction.
block within 'Demo'? You could even create objects there in a pool,
so that the constructor call is quite cheap.
I would prefer this over burdening SOAP::Lite with additional
..at the end of the road there the beast 'CORBA' and 'DCOM'.
- << Previous post in topic Next post in topic >>