The best starting point for you is tigase.xmpp.impl.OfflineMessages class. Based on it you should be able to implement something simple in quite short time.
It archives messages for users who are offline in postProcess(...) method and pushes messages to the user when he comes online in process method.
You case is quite similar but you would archive all messages instead of messages for offline users and message retrieving would be triggered by a different packet type than presence.
This would be very simple and quick but I wouldn't recommend it for high traffic service and also another disadvantage is that you can't access archived messages from any other application (like web application). This is because they are stored in the Tigase server database format which might be quite hard to access from another application.
It is also possible to store messages in some other place if you need. I just need more details of your case and system to recommend the best solution.







Recent comments
7 hours 49 min ago
12 hours 5 min ago
1 day 12 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 weeks 4 days ago
2 weeks 4 days ago
3 weeks 1 day ago
3 weeks 1 day ago
7 weeks 3 days ago