automatic reconnect on ldap eWay

Hi

On Ldap eWay External Properties, on environment explorer I can configure Maximum Retries and Retry Interval properties for connecting Ldap server.

I know if connection to Ldap fail after their Maximum Retries, eWay generates an Alert and I can monitores it on eManager console, but can I configure a automatic reconnect on java collaboration?. That is, once eWay does all attemps for connecting Ldap and it fail, when arrive next request to eWay it generate an LDAPApplicationException. Can I capture this exception and try to reconect to Ldap?

Thanks on advance.

[593 byte] By [conector] at [2007-11-26 10:42:08]
# 1
hi conector,ldap eway afaik takes session timeouts from global IS parameter Resource Pool Idle timeout. if you set this value to non zero. ldap is able to reconnect.this applies to our ICAN 505 system. dont know if there are changes in later versions.regards chris
ChrisBrennsteiner at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi, thanks for your reply

I configure ldap external system with maximum retries = 5 and retry interval = 10000.

My test was the following steps:

1. I started ldap server

2. I sent a request to ldap server and It answered OK

3. I stop Ldap server

4. I sent another request to ldap server and it answered: "Search failed; exception thrown : javax.naming.CommunicationException: connection closed"

5. I started Ldap server

6. I sent another request to ldap server and it answered: "Search failed; exception thrown : javax.naming.CommunicationException: connection closed".

The jcd can't reconnect to Ldap server.

How can I reconnect without disable/enable the java collaboration on the eManager?

Any help will be appreciated.

conector at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3
hi conector,please read my former post!i think you have to set "IS parameter Resource Pool Idle timeout"reagrds chris
ChrisBrennsteiner at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 4

Hi Chris

I am working with javacaps version 5.1.1

I review ldap properties for ldap eway an it has a property for Idle timeout. I set this property to 0 (zero) no idle.

I repetead my test an the result was the same. The Ldap eway adapter can磘 reconnect.

Thanks on advanced.

conector at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 5
hi conector,resource pool idle timeout is an >>>>IS (Integration server)<<<< property and has nothing to do with ldap originally, but gives you the chance to reconnect again in ICAN 505.regards chris
ChrisBrennsteiner at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 6

Hi Chris

Thanks for your comments.

I have been searching about pool idle timeout property on the IS and I don磘 have gotten it.

On eDesigner, on environment console I don磘 see any property about timeout.

is it property in a configuration file?.

Thank a lots four your responses

conector at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 7
I think you need to set the property in domain.xml fileActaul property name is "pool-idle-timeout-in-seconds"Regards,
CAPSHelp at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 8
yes i think so too!sorry i am not used to CAPS for now, my answer (where to set it) just applied to ICAN.regards chris
ChrisBrennsteiner at 2007-7-7 2:54:02 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...