Retrieve messege in private chat

i try this code,

XMTPConnection connect;

connect = new XMPPConnection(host, port);


connect.login(user, password,“res”,true);

connect.addPacketListener(this,new MessageTypeFilter(Message.Type.GROUP_CHAT));

MultiUserChat m_multi = new MultiUserChat(connect, “”);

after create muc i send the instance of muc in different class n create private chat the code is given below,

PrivateChat m_chat1=m_multi.createPrivateChat(Participant1);



but the problem is this i m unable to retrieve messege of private chat,it will retrieve when some action performing in muc.what i m doing wrong can anybody suggest me