private String domain = JiveProperties.getInstance().get("xmpp.domain");//获得服务器的域
public void pushMessage(JID to, JID from, String body,
String subject) {
JID t1 = new JID("test1" + "@" + domain);
JID t2 = new JID("test2" + "@" + domain);
System.out.println("push to : \t" + t2.toString());
Message message = new Message();
message.setFrom(t2);
message.setTo(t1);
message.setBody("cccc");
message.setSubject("dddd");
/*if (StringUtils.isNotBlank(subject)) {
message.setSubject(subject);
}*/
XMPPServer.getInstance().getRoutingTable().routePacket(t1, message, true);
}