In last we have seen how to get list of all available rooms in server. This post is about how to use those information to chat in a room.Once user get list of all room. He needs to choose one room out of it to chat with. User will send presence to existing room. Here there is a little bit change in presence stanza. User needs to add nick name for the room. All other user will see him as his nick name rather than username. e.g.<presence from='{user-jid}/{resource}' to='{room-id}@conference.domain/{nick-name}'></presence>Server will send...
Friday, 20 July 2012
Thursday, 19 July 2012
XMPP Chat room mechanism # Part-1
XMPP protocol provides specification for multi-user chatting(MUC). It is about service provider to implement it. You need to enable MUC from server side. Provider would also give facility to create persistent chat rooms. In terms of XMPP, chat room is known as conference. User can also create a new conference from client program.When user is loggin in, he needs to ask for available service on server side. User need to send following XML to server.<iq type='get' from='{user-jid/resource}' to='domain' id='discoitem1'> <query xmlns='http://jabber.org/protocol/disco#items'/></iq>Server...
Thursday, 12 July 2012
OpenFire Sub Group
XMPP has concept of chat rooms. A chat room is basically a conference room where users can discuss on some points. But Yahoo has provided room facility as social chatting rooms where any member can join the group and chat with other members. In this feature "nested chat rooms" are provided.XMPP is not basically providing nested or child chat rooms. But twisting the logic little bit can make it possible with normal XMPP also. Recall the concepts of domain name. Facebook has domain "facebook.com". Then they have started services of application. They...
Friday, 6 July 2012
J2ME Theme development

LWUIT would not be best option for desktop base application. But when you need some good UI in mobile application. The UI that can attract people directly. You must need LWUIT. I have recently completed one project with J2ME with LWUIT.
Here with attaching demo for what you can do with LWUIT.
As well sharing resource file for this theme. Make sure you use same version of LWUIT for editing theme and mobile library otherwise it won't work....
Monday, 2 July 2012
Hibernate Caching: Part II
In first part of Hibernate Caching, we discussed about overall caching mechanism, strategies, implementation & configurations. Now in part two, we will look into Query cache and Caching association.
In many applications we have certain data sets which are permanent (not changing frequently) in nature but still dynmic like currencies supported, languages supported, countries etc. In such cases, it is useful to cache the exact results of a query, rather than caching certain objects. These queries would return exactly the same data set each...
Sunday, 1 July 2012
Hibernate Caching
Caching is widely used for optimizing database applications. A cache is
designed to reduce traffic between your application and the database by
conserving data already loaded from the database. Database access is
necessary only when retrieving data that is not currently available in
the cache. The application may need to empty (invalidate) the cache from
time to time if the database is updated or modified in some way,
because it has no way of knowing whether the cache is up to date.
When we use hibernate as persistence layer framework,...
Subscribe to:
Posts (Atom)