License for clients Jars , njms , nclient

Unfortunately what you are asking is not something that i can explain in a single post…it sounds too broad in nature for me. I would recommend you start reading the documentation(Java section) that i referred to. That will give you a high level of understanding of what you need to do for implementing this and then it will direct you to the places from where samples can be retrieved from.