Trustin, Peter,

While experimenting with ADS/MINA and OSGi I started out working with
the subproject osgi in the latest ADS trunk a couple of months ago but
ran into problems with missing dependency exports and overall functional
stability of the code on the trunk. (These stability issues in the ADS
trunk I believe, are now resolved.)  So I created a set of OSGi bundles
re-wrapping the Mina and ADS using an alternative organization of the
wrapped dependencies. 
<RANT>
This wrapping of jars is for the birds! It leads to all kinds of second
guessing of the original archive authors and a spider web of
dependencies.  
</RANT>
> > I think turning our JARs into OSGi bundle should be a piece of cake
if we
> > use maven osgi plugin.  
Yes it should be!
> We didn't have enough time for it yet.  As always,
> > any contribution is welcome! :)
I would take pleasure to do this. And once done the ADS team can throw
away the osgi wrapping project in the 1.1 trunk and I can do the same
with my Mina wrapping project!

WDYT?

Here is the current pom.xml file I use for wrapping MINA OSGi.  Perhaps
you will find it useful in creating yours. Note that shared-asn1 is
offered as a separate bundle in the osgi framework and not wrapped by
this pom.xml.


- John

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <groupId>com.verticon.apacheds</groupId>
                <version>1.0-RC3</version>
                <artifactId>build</artifactId>
        </parent>
        <artifactId>apacheds.mina</artifactId>
        <packaging>osgi-bundle</packaging>
        <version>0.9.4</version>
        <name>ApacheDS Mina Support</name>
        <build>
          <plugins>
            <plugin>
                <groupId>org.apache.felix.plugins</groupId>
                <artifactId>maven-osgi-plugin</artifactId>
                <extensions>true</extensions>
                <version>0.8.0-SNAPSHOT</version>
                <configuration>
                <osgiManifest>
                  <bundleName>MINA</bundleName>
                  <bundleVendor>Apache</bundleVendor>
                  <bundleCategory>Network Service</bundleCategory>
                  <bundleDescription>A bundle that registers the MINA
library.           
                  </bundleDescription>
<!-- The importPackage element is built by the plug. 
For reference the original importPackage element was:
                  <importPackage>
                        javax.net.ssl,
                        org.apache.log4j,
                        org.slf4j,
                        org.apache.directory.shared.asn1.codec.stateful
                  </importPackage>
-->
                  <exportPackage>                                    
                    org.apache.mina.filter,                             
     org.apache.mina.filter.codec,                                     
     org.apache.mina.filter.codec.asn1,  
     org.apache.mina.filter.codec.textline,
org.apache.mina.util,
org.apache.mina.common,                                        
     org.apache.mina.common.support,
org.apache.mina.transport.socket.nio,
org.apache.mina.handler,                                               
     org.apache.mina.handler.chain,
org.apache.mina.handler.demux           
                </exportPackage>
               </osgiManifest>
             </configuration>
           </plugin>
         </plugins>
        </build>
        <dependencies>
                 <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>nlog4j</artifactId>
                        <version>1.2.25</version>
                        <scope>provided</scope>
                </dependency>
                 <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.directory.shared</groupId>
                        <artifactId>shared-asn1</artifactId>
                        <version>0.9.5.1</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.directory.mina</groupId>
                        <artifactId>mina-filter-ssl</artifactId>
                        <version>${pom.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.directory.mina</groupId>
                        <artifactId>mina-filter-codec-asn1</artifactId>
                        <version>${pom.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.directory.mina</groupId>
                        <artifactId>mina-core</artifactId>
                        <version>${pom.version}</version>
                </dependency>
        </dependencies>
</project>








        







        ��      ���     X


-
6



�





D
���     )

raph
raph
�       


D>

( 

�       

!
        !
xsd

0On Thu, 2006-08-31 at 08:47 +0200, Peter Neubauer wrote:
> OK,
> thanks for the answer, we will start by just including the whole of
> MINA into one bundle, and look at more fine grained services like
> protocol==service->different dynamic bundles etc etc.
> 
> I fwe get there, I will ceratinly contribute the interesting parts here!
> 
> /peter
> 
> On 8/31/06, Trustin Lee <[EMAIL PROTECTED]> wrote:
> > Hi Peter,
> >
> > On 8/31/06, Peter Neubauer <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > > we would like to use MINA in an OSGi based system and wonder if MINA
> > > is available as pure OSGi bundles, and how to get/compile them?
> > >
> > > Thanks a lot for hints!
> >
> >
> > OSGi library bundle for the latest version doesn't exist for now AFAIK.  But
> > I think turning our JARs into OSGi bundle should be a piece of cake if we
> > use maven osgi plugin.  We didn't have enough time for it yet.  As always,
> > any contribution is welcome! :)
> >
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP key fingerprints:
> > * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> > * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6
> >
> >
> 

Reply via email to