• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Desktop application for Multiple PC's

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?
 
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddique Ansari wrote:I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?


I see no way to avoid socket programming if you talking about PCs in network. JDBC will use sockets under the hood anyway.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

surlac surlacovich wrote:

Siddique Ansari wrote:I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?


I see no way to avoid socket programming if you talking about PCs in network. JDBC will use sockets under the hood anyway.



I believe the context of the question was in regards to "socket programming" -- not whether sockets are used "under the hood". If the DB is the only service that communicates with the applications, then JDBC alone could do the job. Otherwise, you will need some sort of network based communications, and yes, the socket library is probably the simplest choice.

Henry
 
Siddique Ansari
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Henry Wong wrote:

surlac surlacovich wrote:

Siddique Ansari wrote:I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?


I see no way to avoid socket programming if you talking about PCs in network. JDBC will use sockets under the hood anyway.



I believe the context of the question was in regards to "socket programming" -- not whether sockets are used "under the hood". If the DB is the only service that communicates with the applications, then JDBC alone could do the job. Otherwise, you will need some sort of network based communications, and yes, the socket library is probably the simplest choice.

Henry



I need to share Both DB and Some word files. Can you suggest me best website for learning socket programming.
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddique Ansari wrote:
I need to share Both DB and Some word files. Can you suggest me best website for learning socket programming.



I don't know about best... but the Oracle tutorials is a safe place to start...

http://docs.oracle.com/javase/tutorial/networking/sockets/

Henry
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Siddique Ansari wrote:

Henry Wong wrote:
... the socket library is probably the simplest choice.


I need to share Both DB and Some word files. Can you suggest me best website for learning socket programming.


I don't see that socket programming in this situation will be the simplest choice, because in this case OP will need to write both sides of socket communication, why to do that if OP can run Web Server (like Tomcat), deploy all necessary files there and simply download it via HTTP(S)?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think the OP intended to run this over the web hence Tomcat is out of the picture.
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:I don't think the OP intended to run this over the web hence Tomcat is out of the picture.



Well, that may be true, but until we know what the OP's application architecture is, it's too early to suggest how it should be implemented. Even the question of whether socket programming should be used is premature.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic