This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes newbie in distributed computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "newbie in distributed computer " Watch "newbie in distributed computer " New topic
Author

newbie in distributed computer

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi,all my friends here, recently i have a project relavant to client / server base in distributed environment, my question is , what are the technology i need to include to this project ? i'm new in distributed system, but i do have some experience on java , what are the books recommended to read out in order to accomplish my project, thank you very much for helping !
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
Hi Alvin,

the most basic technology for creating distributed apps is RMI (Remote Method Invocation). To learn more about RMI, check out William Grosso's book (Java RMI), which provides a really good introduction into RMI.

But you should also check out whether browser-based JSP/servlet solutions could do in your case.

Hope this helps.


Mag
Catalin Merfu
Ranch Hand

Joined: May 26, 2004
Posts: 42
If you want to develop distributed applications start with the fundamentals, the TCP/IP protocol. The Internet is built on top of TCP/IP.

Create a simple client/server application using Socket and ServerSocket in java.net package. All Internet applications work on this same principles.

Then move on to Remote Procedure Call (RPC) methods. RMI is the most simple to use because is part of the jdk. Do some research on CORBA, SOAP and EJB.


Catalin Merfu<br /><a href="http://www.accendia.com" target="_blank" rel="nofollow">High Performance Java Networking</a>
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thank you for your information , mag and catalin .

my application is actually develop accounting software which using server as host and other client which link to server database, so that during transcation in client, and server database be able to update database in synchronize way,

and we plan to make this as desktop application, so any suggestion on these ? desktop application make sense on this situation or web based ? thank you !
Catalin Merfu
Ranch Hand

Joined: May 26, 2004
Posts: 42
You can go with 2 tier architecture that includes a
- Swing client that connects to the
- Database Server

or a 3 tier architecture comprised of
- Database Server
- Web application comprised of servlets and JSPs hosted
on a webserver (ex Tomcat). The web application will query the
database
- Browser that becames your GUI

Start designing the database, it will be the same for both
architectures. Then develop the Swing client and then the web application.
You should have them both if possible.
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
catalin, from your point , which model is faster ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
I suspect that the database operations will always dominate the response time, no matter which interface you choose.
For a desktop application, the Java WebStart approach is much more flexible than a web based (browser/servlet or J2EE) approach.
Bill
 
GeeCON Prague 2014
 
subject: newbie in distributed computer