You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "John E. Conlon" <jc...@verticon.com> on 2006/12/12 19:01:21 UTC
[OSGi] A Spring-OSGi enabled ApacheDS in Felix
For those interested in OSGi, below is how an experimental spring-osgi
enabled ApacheDS (with Java 5 mods) looks in a felix runtime.
-> ps
START LEVEL 2
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
[ 1] [Active ] [ 1] Apache Felix Shell Service (0.8.0.SNAPSHOT)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (0.8.0.SNAPSHOT)
[ 3] [Active ] [ 1] Servlet 2.1 API (0.8.0.SNAPSHOT)
[ 4] [Active ] [ 1] OSGi R4 Compendium Bundle (4)
[ 5] [Active ] [ 1] Service Binder (0.8.0.SNAPSHOT)
[ 6] [Active ] [ 1] logging-service bundle (1.0.6.SNAPSHOT)
[ 7] [Active ] [ 1] commons-lang-osgi bundle (2.1)
[ 8] [Active ] [ 1] antlr-osgi bundle (2.7.6)
[ 9] [Active ] [ 1] jzlib-osgi bundle (1.0.7)
[ 10] [Active ] [ 1] commons-collections-osgi bundle (3.2)
[ 11] [Active ] [ 1] org.springframework.core (2.1.0)
[ 12] [Active ] [ 1] org.springframework.beans (2.0)
[ 13] [Active ] [ 1] org.springframework.aop (2.0)
[ 14] [Active ] [ 1] org.springframework.context (2.0)
[ 15] [Active ] [ 1] aopalliance (1.0)
[ 16] [Active ] [ 1] org.springframework.osgi.io (1.0)
[ 17] [Active ] [ 1] org.springframework.osgi (1.0)
[ 18] [Active ] [ 2] mina-integration-osgi bundle
(1.1.0.SNAPSHOT)
[ 19] [Active ] [ 2] shared-osgi bundle (0.9.6.SNAPSHOT)
[ 20] [Active ] [ 2] ApacheDS JNDI Backing Store
(1.5.0.SNAPSHOT)
[ 21] [Active ] [ 2] apacheds-protocol-shared-osgi bundle
(1.5.0.SNAPSHOT)
[ 22] [Active ] [ 2] ApacheDS Backend Store Felix Shell
Interface (1.5.0.SNAPSHOT)
[ 23] [Active ] [ 2] ApacheDS LDAP Protocol Bundle
(1.5.0.SNAPSHOT)
--------------------------------------------------
Notes on bundles:
1-5 are Felix/OSGi infrastructure bundles,
6 is the slf4j/logging,
7-10 are ADS third party dependencies,
11-17 are experimental Spring IOC support bundles,
18 Mina
19 ADS Shared libraries
20 ADS JNDI backend
21 ADS protocol-shared library
22 ADS text based user interface for felix,
offering searching and ldif loading
23 ADS LDAP Protocol provider
Were still waiting on a few more pieces to fall into place before
bringing this thing out of the sandbox. Will update status as it
changes.
For those interested in trying it out the code is in my sandbox.
cheers,
John
Re: [OSGi] A Spring-OSGi enabled ApacheDS in Felix
Posted by "John E. Conlon" <jc...@verticon.com>.
On Tue, 2006-12-12 at 13:58 -0500, Alex Karasulu wrote:
> Very cool this all looks too familiar. It's good to have it up and
> running again.
This part should look a little different...
... in the latest felix 0.9.0-incubator-SNAPSHOT with the new Felix
Framework Logger sending output (or should I say finally being able to
suppress Felix output) to our logging service bundle.
Note the spring-osgi log messages. Spring is assembling our objects via
IOC within the bundle/jars and then referencing and registering OSGi
services based on the spring configuration file resources within the
bundles.
OSGi + Spring = Uber-IOC!
Bottom line: No OSGi code coupling for the main ADS modules!
Welcome to Felix.
=================
-> org.apache.directory.osgi.services.logging.Activator: Setting log4j
configuration to: file:/tmp/main2/conf/log4j.properties
INFO org.apache.directory.osgi.services.logging.Activator
resetLog4j.150 - Reset log configuration, with configuration:
file:/tmp/main2/conf/log4j.properties
INFO org.springframework.osgi.context.ContextLoaderListener info.118 -
Starting bundle [apacheds-core-osgi Spring enabled bundle] with
configuration [bundle-url:bundle://20.0/0/META-INF/spring/server-
osgi.xml,bundle-url:bundle://20.0/0/META-INF/spring/server.xml]
WARN org.apache.directory.server.core.DefaultDirectoryService
startup.208 - ApacheDS shutdown hook has NOT been registered with the
runtime. This default setting for standalone operation has been
overriden.
WARN org.apache.directory.server.core.DefaultDirectoryService
showSecurityWarnings.684 - You didn't change the admin password of
directory service instance 'default'. Please update the admin password
as soon as possible to prevent a possible security breach.
INFO org.apache.directory.osgi.backend.InitialContextFactoryImpl
init.101 - ApacheDS Backend Store offering an InitialContextFactory
Service: started in 1337 milliseconds
INFO org.springframework.osgi.service.OsgiServiceExporter info.118 -
Publishing service [[javax.naming.spi.InitialContextFactory]]
INFO org.springframework.osgi.context.ContextLoaderListener info.118 -
Starting bundle [apacheds-core-felix-tui Spring enabled bundle] with
configuration [bundle-url:bundle://22.0/0/META-INF/spring/server-
osgi.xml,bundle-url:bundle://22.0/0/META-INF/spring/server.xml]
INFO org.springframework.osgi.service.OsgiServiceExporter info.118 -
Publishing service [[org.apache.felix.shell.Command]]
INFO org.springframework.osgi.context.ContextLoaderListener info.118 -
Starting bundle [apacheds-protocol-ldap-osgi Spring enabled bundle] with
configuration [bundle-url:bundle://23.0/0/META-INF/spring/server-
osgi.xml,bundle-url:bundle://23.0/0/META-INF/spring/server.xml]
INFO org.apache.directory.server.ldap.osgi.DefaultServerConfigurator
schedule.70 - Scheduling the configuration of a default ldap server in
5 seconds
INFO org.apache.directory.server.ldap.osgi.LdapServer <init>.55 -
Apache LDAP Service listening on port 10389
- John
Re: [OSGi] A Spring-OSGi enabled ApacheDS in Felix
Posted by Alex Karasulu <ak...@apache.org>.
John E. Conlon wrote:
> For those interested in OSGi, below is how an experimental spring-osgi
> enabled ApacheDS (with Java 5 mods) looks in a felix runtime.
>
> -> ps
> START LEVEL 2
> ID State Level Name
> [ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
> [ 1] [Active ] [ 1] Apache Felix Shell Service (0.8.0.SNAPSHOT)
> [ 2] [Active ] [ 1] Apache Felix Shell TUI (0.8.0.SNAPSHOT)
> [ 3] [Active ] [ 1] Servlet 2.1 API (0.8.0.SNAPSHOT)
> [ 4] [Active ] [ 1] OSGi R4 Compendium Bundle (4)
> [ 5] [Active ] [ 1] Service Binder (0.8.0.SNAPSHOT)
> [ 6] [Active ] [ 1] logging-service bundle (1.0.6.SNAPSHOT)
> [ 7] [Active ] [ 1] commons-lang-osgi bundle (2.1)
> [ 8] [Active ] [ 1] antlr-osgi bundle (2.7.6)
> [ 9] [Active ] [ 1] jzlib-osgi bundle (1.0.7)
> [ 10] [Active ] [ 1] commons-collections-osgi bundle (3.2)
> [ 11] [Active ] [ 1] org.springframework.core (2.1.0)
> [ 12] [Active ] [ 1] org.springframework.beans (2.0)
> [ 13] [Active ] [ 1] org.springframework.aop (2.0)
> [ 14] [Active ] [ 1] org.springframework.context (2.0)
> [ 15] [Active ] [ 1] aopalliance (1.0)
> [ 16] [Active ] [ 1] org.springframework.osgi.io (1.0)
> [ 17] [Active ] [ 1] org.springframework.osgi (1.0)
> [ 18] [Active ] [ 2] mina-integration-osgi bundle
> (1.1.0.SNAPSHOT)
> [ 19] [Active ] [ 2] shared-osgi bundle (0.9.6.SNAPSHOT)
> [ 20] [Active ] [ 2] ApacheDS JNDI Backing Store
> (1.5.0.SNAPSHOT)
> [ 21] [Active ] [ 2] apacheds-protocol-shared-osgi bundle
> (1.5.0.SNAPSHOT)
> [ 22] [Active ] [ 2] ApacheDS Backend Store Felix Shell
> Interface (1.5.0.SNAPSHOT)
> [ 23] [Active ] [ 2] ApacheDS LDAP Protocol Bundle
> (1.5.0.SNAPSHOT)
>
> --------------------------------------------------
> Notes on bundles:
> 1-5 are Felix/OSGi infrastructure bundles,
> 6 is the slf4j/logging,
> 7-10 are ADS third party dependencies,
> 11-17 are experimental Spring IOC support bundles,
> 18 Mina
> 19 ADS Shared libraries
> 20 ADS JNDI backend
> 21 ADS protocol-shared library
> 22 ADS text based user interface for felix,
> offering searching and ldif loading
> 23 ADS LDAP Protocol provider
>
>
> Were still waiting on a few more pieces to fall into place before
> bringing this thing out of the sandbox. Will update status as it
> changes.
Very cool this all looks too familiar. It's good to have it up and
running again.
Alex