1
我想在適配器中調用java類。我創建了一個名爲com.wl.poc.LdapUserCreator類,並順利拿到了它在WL服務器工作無法識別我的java類的適配器
(從另一個上下文中調用它)在我的適配器的代碼,我把這個:
var url = WL.Server.configuration['com.wl.poc.ldap.providerUrl'];
var uidExpression = WL.Server.configuration['com.wl.poc.ldap.uidExpression'];
var base = WL.Server.configuration['com.wl.poc.ldap.ldapSearchBase'];
var managerDn = WL.Server.configuration['com.wl.poc.ldap.managerDn'];
var managerPwd = WL.Server.configuration['com.wl.poc.ldap.managerPwd'];
var service =wl.poc.LdapUserCreator.getServiceInstance(url, uidExpression, base, managerDn, managerPwd);
我有這個錯誤
ReferenceError: "wl" is not defined (.../IntegrationAdapter-impl.js#373)
另一個問題: 如果是有可能有在適配器的服務類的實例(這是一個Java實例)之後調用它(還沒有試過的話)?
var service =wl.poc.LdapUserCreator.getServiceInstance(url, uidExpression, base, managerDn, managerPwd);
service.addNewUser(...) ?