On 20 sept. 2011, at 14:21, Christoph Czurda wrote:
> Hi Pierre-Arnaud,
>
> Thank you for your quick reply!
>
> I've tried with both 1.5.7 and 2.0.0-M3 release and the result is the same
> for both. I refer to 2.0.0-M3 now. Building the osgi artifact creates a
> bundle: org.apache.directory.server/apache-osgi/{whichever_version}. The osgi
> module, which was originally commented out in the parent pom, is described
> as: "Uncomment to build all in one OSGi bundle."
I see now.
IIRC, this module has been created a while back (in early 2009) and is no
longer maintained nowadays.
It has probably been working for earlier versions of ApacheDS released at the
time the module was still part of the build. Probably 1.5.5.
I've never tested it personally.
As we've done with Shared/LDAP API modules, we intend to make each ApacheDS
module an OSGI bundle.
However, as noted on this previous thread on ML [1], there are still major
steps to accomplish this, like for example avoiding using the same package in
two different modules (which logically makes OSGI go crazy).
A few bundle activators might also be needed.
> I will be glad to provide you with more information and I also offer my help
> in moving ApacheDS to OSGI as I plan to use it for another project.
Cool, any help is greatly appreciated, especially in making ApacheDS an OSGI
software.
If you're familiar with OSGI and ApacheDS' code, feel free to create and/or
reuse a JIRA issue and attach a patch fixing a particular problem.
Regards,
Pierre-Arnaud
[1] -
http://mail-archives.apache.org/mod_mbox/directory-dev/201104.mbox/%[email protected]%3E
> Kind Regards,
> Christoph
>
>
> On 09/20/2011 12:58 PM, Pierre-Arnaud Marcelot wrote:
>> Hi Christoph,
>>
>> Which bundle are you talking about exactly?
>>
>> I'm asking this because, at this time, we have not done any work to move
>> ApacheDS to OSGI. This is one of the tasks we're expecting tp do in a next
>> milestone for the 2.0 release.
>>
>> At the moment only the Shared/LDAP API jars are constructed and work as
>> bundles.
>>
>> Regards,
>> Pierre-Arnaud
>>
>> On 20 sept. 2011, at 12:52, Christoph Czurda wrote:
>>
>>> On 09/20/2011 07:12 AM, Alex Karasulu wrote:
>>>> On Mon, Sep 19, 2011 at 1:45 PM, Christoph Czurda
>>>> <[email protected]> wrote:
>>>>> Hello!
>>>>>
>>>>> As already suggested by others on your mailing list, I would also be
>>>>> interested in deploying apacheds in karaf. So far I have been able to
>>>>> install the osgi feature, that is, I have the apacheds bundle in active
>>>>> state. Next, I wanted to see if this is sufficient to connect to the
>>>>> server
>>>>> using apache directory studio. It seems not. The bundle being active
>>>>> doesn't
>>>>> mean that the server is running and listening for connections, does it?
>>>>>
>>>>> What would be necessary to connect to the server?
>>>> Could u elaborate a bit more on how you configured ApacheDS in Karaf.
>>>> There's not enough information here to have traction for trouble
>>>> shooting your problem. First off can you telnet to the LDAP port ...
>>>> meaning establish a TCP connection, and which port exactly did you
>>>> configure the LDAP listener on? Many questions requiring more
>>>> information on how you configured ApacheDS to start in Karaf.
>>>>
>>> So far I did not configure anything at all. In Karaf I simply installed the
>>> provided features.xml found inside the osgi artifact (after adding a few
>>> missing dependencies). But the bundle being active does not open any new
>>> host and port I could connect to.
>>>
>>> Maybe I asked the wrong question... How can I start the server in Karaf? Or
>>> more generally: What does the OSGI bundle actually do?
>>>
>>> Thank you,
>>> Christoph
>