You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Jared Hanson <ja...@gmail.com> on 2007/02/22 20:18:47 UTC

Initial patch against trunk for static deployment engine

I've created an initial patch against the trunk for my static deployment
engine.  I've used #ifdefs, and placed the relevant changes directly in the
source.  This greatly simplified the code, compared to keeping it a separate
module.  When building, simply define AXIS2_STATIC_DEPLOY to build a
libraries targeted for static linking and deployment.

In the patch, the following files have modifications:
dep_engine.c
desc_builder.c
repos_listener.c
http_transport_sender.c
dll_desc.c
file_handler.c

I've commented the areas where I've made changes, in order to explain how
the static deployment engine operates differently than the normal dynamic
engine.

Also, the following new files exist:
axis2_static_arch.h
axis2_static_conf.h
axis2_static_lib.h
axis2_static_repos.h

Strictly speaking, only axis2_static_repos.h is required.  An implementation
needs to be provided by the application, and set equal to
g_axis2_static_repos pointer.  The implementation provides functions that
approximate disk access, getting the root path, reading files, etc.  The
other header files are simply ones I found useful, and mirror archive files
(modules, services), repository configuration, and any libraries
(http_transport_sender, etc.).  The application could implement the
requirements of axis2_static_repos.h without using these, however.

I think the code should be fairly self-explanatory.  I'll be putting
together a sample of how to use these, and uploading in the next few days.
In the meantime, the example-app in my previous upload (
http://www.asperasoft.com/developer/axis2c/axis2-static-deploy.tar.gz)
demonstrates most of what is necessary.

I am, of course, subscribed to the list.  So, any feedback or questions can
be sent here.

Thanks,
Jared Hanson

Re: Initial patch against trunk for static deployment engine

Posted by Jared Hanson <ja...@gmail.com>.
Dinesh,

Yeah, I revised the code a bit in the patch I submitted, and the sample
isn't quite compatible with those revisions.  I'll put together a build-able
sample and post it for others to look at.  I've been tied up with some other
tasks for the past couple of days, but I'm hoping to put it together this
weekend.

Thanks,
Jared


On 3/1/07, Dinesh Premalal <xy...@gmail.com> wrote:
>
> Hi Jared,
>        I applied your patch on a branch at scratch area [1]. It
>        compiled and ran without any problem. I just tried to define
>        AXIS2_STATIC_DEPLOY and compile. It went well, but I'm unable
>        to build your sample. If you could please guide me to build
>        your sample. If everything goes well , we will be able to merge
>        this branch to trunk soon.
>
> thanks,
> Dinesh
>
> [1]. http://svn.apache.org/repos/asf/webservices/axis2/scratch/c/531/
>
> --
> Dinesh Premalal
> dinesh@wso2.com
> WSO2, Inc.; http://www.wso2.com/
> GPG Key ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>

Re: Initial patch against trunk for static deployment engine

Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Jared,
       I applied your patch on a branch at scratch area [1]. It
       compiled and ran without any problem. I just tried to define
       AXIS2_STATIC_DEPLOY and compile. It went well, but I'm unable
       to build your sample. If you could please guide me to build
       your sample. If everything goes well , we will be able to merge
       this branch to trunk soon.
 
thanks,
Dinesh

[1]. http://svn.apache.org/repos/asf/webservices/axis2/scratch/c/531/

-- 
Dinesh Premalal
dinesh@wso2.com
WSO2, Inc.; http://www.wso2.com/
GPG Key ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org