You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@directory.apache.org by Steven Nguyen <sn...@advantco.com> on 2016/01/07 08:55:44 UTC
[Community] LDAP client API as OSGi bundle
Hi All,
Does anyone have experience in using client API as a bundle library in Camel
component?
I'm trying to build a simple Camel component to send/receive data from an
LDAP server but it does not work.
The library cannot connect to LDAP server but it does not throw out any
exception.
Thanks & Best Regards,
Steven Nguyen
Re: [Community] LDAP client API as OSGi bundle
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 07/01/16 10:20, Steven Nguyen a écrit :
> Hi Emmanuel,
>
> Thanks for your response.
> I use the latest version (1.0.0-M33) from the website.
> I'm still trying to debug it. With local Camel test component, it works. But when I deploy it on the server, it does not.
Hmmm... Firewall ? DNS issue ?
RE: [Community] LDAP client API as OSGi bundle
Posted by Steven Nguyen <sn...@advantco.com>.
Hi Emmanuel,
Thanks for your response.
I use the latest version (1.0.0-M33) from the website.
I'm still trying to debug it. With local Camel test component, it works. But when I deploy it on the server, it does not.
I will try to contact the server Administrator to see if I can get any DEBUG message.
Thanks & Best Regards,
Steven Nguyen
-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com]
Sent: Thursday, January 7, 2016 4:11 PM
To: api@directory.apache.org
Subject: Re: [Community] LDAP client API as OSGi bundle
Le 07/01/16 09:55, Steven Nguyen a écrit :
> Hi Emmanuel,
>
> There's no log records when it is bundled in Camel component. I hope that I could retrieve the runtime log from the server but I had no luck.
> I checked if the connection was opened successfully or not via the method connect() (e.g. connected = conn.connect();) and its value is "false".
> I created a non-encrypted connection to LDAP server (e.g. I created LdapConnectionConfiguration object, passed some standard parameters, then I created an LdapNetworkConnection with the connection config and opened the connection).
> I tested my program with a simple test class and it works.
Which LDAP API version are you using ?
Somehow, if it works in a simple test, it should also work with Camel.
We use the API in Studio, which is a full OSGi env, so there is no reason it should not work in Camel either...
Have you tried o debug it ?
Re: [Community] LDAP client API as OSGi bundle
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 07/01/16 09:55, Steven Nguyen a écrit :
> Hi Emmanuel,
>
> There's no log records when it is bundled in Camel component. I hope that I could retrieve the runtime log from the server but I had no luck.
> I checked if the connection was opened successfully or not via the method connect() (e.g. connected = conn.connect();) and its value is "false".
> I created a non-encrypted connection to LDAP server (e.g. I created LdapConnectionConfiguration object, passed some standard parameters, then I created an LdapNetworkConnection with the connection config and opened the connection).
> I tested my program with a simple test class and it works.
Which LDAP API version are you using ?
Somehow, if it works in a simple test, it should also work with Camel.
We use the API in Studio, which is a full OSGi env, so there is no
reason it should not work in Camel either...
Have you tried o debug it ?
RE: [Community] LDAP client API as OSGi bundle
Posted by Steven Nguyen <sn...@advantco.com>.
Hi Emmanuel,
There's no log records when it is bundled in Camel component. I hope that I could retrieve the runtime log from the server but I had no luck.
I checked if the connection was opened successfully or not via the method connect() (e.g. connected = conn.connect();) and its value is "false".
I created a non-encrypted connection to LDAP server (e.g. I created LdapConnectionConfiguration object, passed some standard parameters, then I created an LdapNetworkConnection with the connection config and opened the connection).
I tested my program with a simple test class and it works.
Best Regards,
Steven Nguyen
-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com]
Sent: Thursday, January 7, 2016 3:15 PM
To: api@directory.apache.org
Subject: Re: [Community] LDAP client API as OSGi bundle
Le 07/01/16 08:55, Steven Nguyen a écrit :
> Hi All,
>
>
>
> Does anyone have experience in using client API as a bundle library in
> Camel component?
>
> I'm trying to build a simple Camel component to send/receive data from
> an LDAP server but it does not work.
>
> The library cannot connect to LDAP server but it does not throw out
> any exception.
Do you have some logs ?
Also how do you use the connection ?
Re: [Community] LDAP client API as OSGi bundle
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 07/01/16 08:55, Steven Nguyen a écrit :
> Hi All,
>
>
>
> Does anyone have experience in using client API as a bundle library in Camel
> component?
>
> I'm trying to build a simple Camel component to send/receive data from an
> LDAP server but it does not work.
>
> The library cannot connect to LDAP server but it does not throw out any
> exception.
Do you have some logs ?
Also how do you use the connection ?