powered by Jive Software

Get the jid using openfire api inside plugin

i want to get the JID based on user name using openfire api inside my plugin. I am getting the User object but it doesnt return the jid , so how can i get the jid like roger@myserver.com inside my plugin

You can get the JID in your plugin with: XMPPServer.getInstance().createJID(username, null)