Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
5.4.0.CR1
-
None
Description
Currently, you can workaround like this sometimes:
KnowledgeAgentConfiguration conf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); Authenticator.setDefault(new Authenticator() { // =========================== BAD - Does NOT work when there are multiple agents with different usernames @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("admin", "admin".toCharArray()); } }); KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("test", conf);
we should support this::
KnowledgeAgentConfiguration conf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); conf.setUsername("admin"); // Or via setProperty() conf.setPasword("admin".toCharArray()); // Or via setProperty() KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("test", conf);
Attachments
Issue Links
- is related to
-
JBRULES-2698 KnowledgeAgent cannot handle packages from Guvnor
- Resolved