Hi Sagara/ All,

+1!. We need some mechanism to do this.

On Thu, Jun 20, 2013 at 5:43 PM, Sagara Gunathunga <[email protected]> wrote:

>
> Size of the AS distribution becoming very large with last few releases. AS
> 4.1.2 is about 160 MB and AS 5.1.0 is around 200 MB my current
> understanding is AS size will become around 230/240 MB in AS 5.2.0 release
> with JSF, JPA and JTA support, basically once we support for J2EE-WP spec
> AS end up with extra ~100 MB.
>
> WSO2 product/features can be installed  to AS through P2 repo hence it's
> not an issue here. But still it's not clear whether we could use any P2
> based solution to add Classlaoder Environments (CLE) to the basic AS
> distribution.
>
> For AS 5.2.0 we have following CLEs addition to basic Carbon and Tomcat
> CLEs.
>
> 1. CXF  ( ~20 to ~25 MB)
> 2. J2EE ( ~ 30 MB)
>
>
> It's not possible to use P2 mechanism as it is to install CLEs because
> those are not instilled to OSGi runtime instead they stay out side the OSGi
> runtime. Following are the steps we need to perform to add a CLE to AS.
>
> 1. Modify and add an entry to the "webapp-classloading-environments.xml"
> file located on "repository/conf/tomcat" directory.
>

This already happens actually via the webapp-mgt feature. So we can leave
it out IMO.

>
>
> 2. Copy a directory with set of Jar files into the "lib/runtimes"
> directory.
>

Can we put these into a feature (for eg: jax-webapp-mgt feature), and
within p2 level let this separate jars set to be copied into a dir. where
we specify in the features.xml/similar. ?


>
> 3. Copy some samples to the "samples" directory (Optional).
>
>
> Above tasks can be easily done with small Ant script but it would be much
> better to use P2 as it's the platform level mechanism to add new features.
> Any idea how we could  do this using P2 ?
>

Yeah, Ant is not a consistant approach with the feature mgmt aspects.

thanks,

>
> Thanks !
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;    http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - [email protected] <[email protected]>
mobile - 071 56 91 321
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to