I have 2 XMPP clients (both written in smack) connected to Openfire. First client creates a connection, adds a feature and logins.
XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder().setSecurityMode(ConnectionConfiguration.SecurityMode.disabled).setUsernameAndPassword("user", "pass");
builder.setHost("127.0.0.1");
builder.setXmppDomain("domain");
builder.setPort(5222);
XMPPTCPConnection connection = new XMPPTCPConnection(builder.build());
connection.connect();
// Get the service discovery manager
ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
discoManager.addFeature("http://openadr.org/openadr2");
connection.login();
The second client does disco#info request to Openfire. I was hoping that this new feature would be listed in the response
<query xmlns='http://jabber.org/protocol/disco#info'>
....
<feature var='http://openadr.org/openadr2'/>
....
</query>
but it’s not the case.
So my question is how to expand/add new feature to the response from openfire to include the new feature or am I missing something here?