• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Development of client server app!!!

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The scenario is such that we want to make a License server.License file is unique for 20 users using it simultaneously but if 21st user comes in he should not be allowed to use that license file.How can we build this application from client server point of view.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesnot sound very complicated , I think this isn't the full requirement.

You can simple keep track of how many clients are using the liscences , before handing over liscence you can check whether it has exceed its limit or not.

Can you elaborate on this.
 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rahul,
Actually the problem is the solution to this problem should be such which can work in web environment as well as desktop application.
Should I use RMI with Swing for Desktop applications?
or Should I use Java,JSP,Servlets?

Thanks
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sonal Sharma:
Hi Rahul,
Actually the problem is the solution to this problem should be such which can work in web environment as well as desktop application.
Should I use RMI with Swing for Desktop applications?
or Should I use Java,JSP,Servlets?

Thanks



I do not think you need an UI for this piece.It should be as a service and that can be anything without the need of an UI.

The clients would request the server for a Liscense and the server would hand over a file in case the the client is meeting the criteria , otherwise will return an message.
 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Rahul,
Question still remains.Give me some inputs to develop this service as you call it.What things should I use to develop it.I know I have to use a little of encryption/decryption as well.

Thanks
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sonal Sharma:
Give me some inputs to develop this service as you call it.What things should I use to develop it.



You can use web services for this or write a server and client from scratch for this using plain java sockets.

I do not know much about WS but this should work in that way.
Your client can request a licence from the web service.The service should check whether its having enough licences to hand over.If yes , then it can give back the licence , if the licence is binay then the service might go ahead and base64encode and send the licence in the response.In case it doesnot have enough license then it might return a fault.
[ May 23, 2007: Message edited by: Rahul Bhattacharjee ]
 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rahul for your suggestions.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic