-
May 11th, 2010, 03:15 AM
#1
use 2 different templates from the same dao based on a boolean value
hi,
i want to switch between 2 simpleldaptemplates say ldapTemplate and SslLdapTemplate based on the value of sslenabled=true/false.
i wrote the following code but whn i run it still points to the old template even if ssl is enabled.
kindly answer
public void setLdapTemplate(SimpleLdapTemplate ldapTemplate)
{
if(isLdapsEnabled())
{ log.info("Inside abstractdao setldaptemplate ldaps enbled^^^^^^^^");
this.ldapTemplate=getSslLdapTemplate();
}
else
{ log.info("Inside abstractdao setldaptemplate ldaps NOT enbled^^^^^^^^");
this.ldapTemplate = ldapTemplate;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules