AnsweredAssumed Answered

Openfire and Smack - PEP

Question asked by kvad on Apr 6, 2017

I'm trying to get PEP working. I did setup openfire_4_1_3.zip with pretty much all default settings. Use Smack 4.2.0. Basic code is:

 

            PEPManager pepManager = PEPManager.getInstanceFor(connection);
            boolean worked = pepManager.addPEPListener(new PEPListener() {
                @Override
                public void eventReceived(EntityBareJid from, EventElement event, Message message) {
                    // do something 
                }
            });
            if (pepManager.isSupported())
                pepManager.publish(new Item("pepItem1"), "testNode");

 

But pepManager.isSupported() is false. I tried it with account on xmpp.jp and the same code 'almost' works.  pepManager.isSupported() returns true but the I get some error. But this is different issue. Why pepManager.isSupported() is false with Openfile? Am I missing something in setup?

 

Thank you

Outcomes