Hi Deepal,

See my comments below.. they are just my thoughts ..

Deepal jayasinghe wrote:

>Hi Sanjaya;
>
>pls see my comments below;
>
>Sahan Gamage wrote:
>
>  
>
>>Hi,
>>
>>I am +1 for this model.
>>There are few suggestions:
>>1. Can we do the same for the modules as well. (.mar instead of .aar)
>>2. The user should be able to put a flag(may be in axis2.xml) whether to
>>delete or not, the exploded directories at the exit.
>>3. The structure inside the zip file. Whether to zip the directory or
>>the files/directories inside it. My personal view is that we should zip
>>the contents of the service directory and not the directory itself. This
>>way the users doesn't have a chance of naming the service directtory and
>>the zip file in different names.
>> 
>>
>>    
>>
>+1 , you have to have the same structure as explodede one so arcive file
>should look like below;
>   foo.aar
>      META-INF
>          services.xml
>       compile code
>
>  
>
>>- Sahan
>>
>>Sanjaya Ratnaweera wrote:
>>
>> 
>>
>>    
>>
>>>Hi all,
>>>
>>>I'm implementing an archive based deployment model for Axis2 C.
>>>
>>>Here is the outline of how I am going to implement it:
>>>
>>>  - Archives are placed in the "services" directory.
>>>   
>>>
>>>      
>>>
>great :)
>
>  
>
>>>  - Archives are in zip format.
>>>  - Archives  have an .aar extension.
>>>  - Archives are extracted in to the services directory.
>>>   
>>>
>>>      
>>>
>do we need to do this , without extracting cant you load the lib and all
>  
>
In C, I don't think there is a way to load a library from a zip (or from
any archive file) without exploding it.  This  especially matters in
windows platform.
Infact the .so file( or the .dll)  we are gonna include inside the
service archive (.aar) itself is an archive. But unfortunately we can't
include additional stuff like xml files and additional libraries which
leads us to this approach

>  
>
>>>  - Services are deployed using the same method used to deploy not
>>>archived services since there's no diffrence        between archived
>>>and not archived services after extracting.
>>>  - Extracted files are deleted before exit.
>>>
>>>   
>>>
>>>      
>>>
>Axis2 java does not expand the archive file and it can load the stuff.
>can you please tell me what do you mean by " Extracted files are deleted
>before exit"
>  
>
Yes. I know. Java has the capability of loading the libraries from an
archive. But for the C ppl, we have to have the required files contained
in a directory and not in a zip file so that the library loader can load
it. So our approach is explode (extract) the zip file on the startup,
load the libaries and depending on the users choice delete the extracted
folders at the exit. Hope that is clear ....

>  
>
>>>Thanks.
>>>
>>>  ~sanjaya
>>>
>>>-- 
>>>http://sanjayar.googlepages.com
>>>
>>>
>>>   
>>>
>>>      
>>>
>> 
>>
>>    
>>
>
>
>  
>
- Sahan

Reply via email to