|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
How to set TCP Keep-Alive for JNDI Connection ?Hi All, I need to set TCP Keep-Alive flag true for JNDI Client
Connection with the Directory Server. Can anyone provide me any suggestion of how can it be done ? I am using com.sun.jndi.ldap.LdapCtxFactory and Sun
JNDI Provider. Thanks in advance for any help in this regard. Thanks Vineet DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JNDI-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: How to set TCP Keep-Alive for JNDI Connection ?Hi Vineet,
I have never set TCP keep-alive on JNDI client, but I know for sure that's something you can set on the directory server side. - dc On Fri, May 16, 2008 at 8:10 AM, Vineet Vyas <vineet_vyas@...> wrote:
=========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JNDI-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: How to set TCP Keep-Alive for JNDI Connection ?You could set the Socket.setKeepAlive metod to set the TCP flag:
http://java.sun.com/javase/6/docs/api/java/net/Socket.html#setKeepAlive(boolean) However in order to gain acess to the Socket you would have to supply a custom SocketFactory to JNDI. The factory could simply be a wrapper around the default socket factory that explicitly sets the keep-alive flag. See the Custom Sockets section in the JNDI Tutorial for more details: http://java.sun.com/products/jndi/tutorial/ldap/security/ssl.html Chun Tat David Chu wrote: > Hi Vineet, > > I have never set TCP keep-alive on JNDI client, but I know for sure > that's something you can set on the directory server side. > > - dc > > On Fri, May 16, 2008 at 8:10 AM, Vineet Vyas > <vineet_vyas@... <mailto:vineet_vyas@...>> wrote: > > Hi All, > > > > I need to set TCP Keep-Alive flag true for JNDI Client Connection > with the Directory Server. > > Can anyone provide me any suggestion of how can it be done ? > > > > I am using *com.sun.jndi.ldap.LdapCtxFactory* and Sun JNDI Provider. > > > > Thanks in advance for any help in this regard. > > > > Thanks > > Vineet > > DISCLAIMER ========== This e-mail may contain privileged and > confidential information which is the property of Persistent Systems > Ltd. It is intended only for the use of the individual or entity to > which it is addressed. If you are not the intended recipient, you > are not authorized to read, retain, copy, print, distribute or use > this message. If you have received this communication in error, > please notify the sender and delete all copies of this message. > Persistent Systems Ltd. does not accept any liability for virus > infected mails. > > =========================================================================== > To unsubscribe, send email to listserv@... > <mailto:listserv@...> and include in the body of the > message "signoff JNDI-INTEREST". For general help, send email to > listserv@... <mailto:listserv@...> and include in > the body of the message "help". > > > =========================================================================== > To unsubscribe, send email to listserv@... and include in the > body of the message "signoff JNDI-INTEREST". For general help, send > email to listserv@... and include in the body of the message > "help". =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JNDI-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |