directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Rodriguez <enriqu...@gmail.com>
Subject Re: Upgrading the OSGi
Date Sat, 22 Apr 2006 09:51:42 GMT
John E. Conlon wrote:
> On Tue, 2006-04-18 at 17:34 -0400, Enrique Rodriguez wrote:
>> John E. Conlon wrote:
>> ...
>>> Have updated it by encapsulating it within a M2 OSGi plugin and have
>>> replaced the hard coding of the directory configuration with a
>>> springframework based server.xml file.
>> OK, makes sense.  You may have noticed I'm working to upgrade this stuff 
>> to M2 at the moment, too, so it is subject to change. 
> Yes I see the updates.

I just updated the Directory build to use M2 and the latest Directory 
and MINA artifacts and Felix.

If you 'svn up' you should be able to run a 'mvn install' in the parent 
POM and another 'mvn install' in the 'osgi' directory.  There is a 
parent POM for just the OSGi bundles, that is not wired into the topmost 
Directory POM yet.  Keep in mind that with Felix "strict modularity" 
you'll need to add the following to your system packages:

org.osgi.framework.system.packages=
...
  javax.naming, \
  javax.naming.spi, \
  javax.naming.directory, \
  javax.naming.ldap, \
  javax.security.auth.kerberos

There's more to test and clean-up, but with any luck you'll see:

------------------------------------------------------------------------
[INFO] Reactor Summary:
------------------------------------------------------------------------
[INFO] ApacheDS JNDI Backing Store ........................... SUCCESS 
[INFO] ApacheDS Change Password Protocol Bundle .............. SUCCESS 
[INFO] ApacheDS DNS Protocol Bundle .......................... SUCCESS 
[INFO] ApacheDS JMX Logger Bundle ............................ SUCCESS 
[INFO] ApacheDS Kerberos Protocol Bundle ..................... SUCCESS 
[INFO] ApacheDS LDAP Protocol Bundle ......................... SUCCESS 
[INFO] ApacheDS LDIF Loader Console Command .................. SUCCESS 
[INFO] ApacheDS MINA Library Bundle .......................... SUCCESS 
[INFO] ApacheDS NTP Protocol Bundle .......................... SUCCESS 
[INFO] ApacheDS OSGi Bundle Build ............................ SUCCESS 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
------------------------------------------------------------------------

You then need to assemble everything manually in Felix.  At a minimum 
you'll want org.osgi.core, MINA, Service Binder, and the JNDI Backing 
Store.  Then on top of those you can add any of the protocols.  You can 
ignore SCR, nothing uses it and I was just trying it out:

-> ps
START LEVEL 1
    ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (0.8.0.SNAPSHOT)
[   1] [Active     ] [    1] ShellService (0.8.0.SNAPSHOT)
[   2] [Active     ] [    1] ShellTUI (0.8.0.SNAPSHOT)
[   3] [Active     ] [    1] BundleRepository (0.8.0.SNAPSHOT)
[   4] [Active     ] [    1] Service Component Runtime (0.8.0.SNAPSHOT)
[   5] [Active     ] [    1] osgi.core (0.8.0.SNAPSHOT)
[   6] [Active     ] [    1] osgi.compendium (0.8.0.SNAPSHOT)
[   8] [Active     ] [    1] ApacheDS MINA Bundle (1.1.0.SNAPSHOT)
[   9] [Installed  ] [    1] Apache NTP Server Bundle (1.1.0.SNAPSHOT)
[  10] [Active     ] [    1] Service Binder (0.8.0.SNAPSHOT)
[  11] [Installed  ] [    1] Apache DNS Server Bundle (1.1.0.SNAPSHOT)
[  12] [Active     ] [    1] ApacheDS JNDI Backing Store Bundle 
(1.1.0.SNAPSHOT)
[  13] [Active     ] [    1] Apache Kerberos Server Bundle (1.1.0.SNAPSHOT)
[  14] [Active     ] [    1] Apache Change Password Server Bundle 
(1.1.0.SNAPSHOT)

Let me know how it goes.

I'll have to get back to you on the rest of your email.

Enrique

Mime
View raw message