It's not a secret anymore!*
The moose likes Distributed Java and the fly likes Basic Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Basic Question" Watch "Basic Question" New topic
Author

Basic Question

raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
What is actual a distributed application?when can i say that XYZ app is disributed application.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
I would say when it is running on more than one machine. This definition would include an app that consists of an applet that talks to a servlet; also a setup where a web app calls stored procedures (maybe even just executes SQL?) in a database. It's hard to draw a line, though. Does using a remote file server count? How about a remote mail or message server?
I wouldn't go so far as to include a web app that uses servlets on the server and JavaScript on the client, though.

Some people go further still and include parallel processing, i.e. an application using several CPUs on the same machine, but that seems a stretch to me.

So, the definition is somewhat arbitrary.


Ping & DNS - updated with new look and Ping home screen widget
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by raj joe:
What is actual a distributed application?when can i say that XYZ app is disributed application.


Raj, if you know of distributed database then you can easily get what distributed applications are all about. As we know that a distributed database is a database which is distributed among two or several machines.

If you know about RMI. Then you can think RMI as a distributed application. The application on one machine invokes the method on some other machine and gets the results.
raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
Originally posted by Adeel Ansari:


Raj, if you know of distributed database then you can easily get what distributed applications are all about. As we know that a distributed database is a database which is distributed among two or several machines.

If you know about RMI. Then you can think RMI as a distributed application. The application on one machine invokes the method on some other machine and gets the results.



1.SAY I HAVE AN WEBAPP DEPLOYED IN AN APP SERVER AND THIS WEBAPP ACCESSES A DB WHICH IS ON A DIFFERENT MACHINE.IS THIS STILL CALLED DISTRIBUTED APPLICATION.

2.SAY I HAVE AN WEBAPP DEPLOYED IN AN APP SERVER AND THIS WEBAPP ACCESSES A DB WHICH IS ON THE SAME MACHINE AND THIS APP SERVER IS ON A CLUSTER ,IS THIS STILL CALLED DISTRIBUTED APPLICATION.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by raj joe:
1.SAY I HAVE AN WEBAPP DEPLOYED IN AN APP SERVER AND THIS WEBAPP ACCESSES A DB WHICH IS ON A DIFFERENT MACHINE.IS THIS STILL CALLED DISTRIBUTED APPLICATION.


I would say no. Because you are not distributing application. Your app is just using a DB that is on other machine. What you say?


2.SAY I HAVE AN WEBAPP DEPLOYED IN AN APP SERVER AND THIS WEBAPP ACCESSES A DB WHICH IS ON THE SAME MACHINE AND THIS APP SERVER IS ON A CLUSTER ,IS THIS STILL CALLED DISTRIBUTED APPLICATION.


I would say yes. Because cluster is a logical partition of your hard drive. No matter it is distributed among several machines or several logical partitions. But usually we use the term "distributed" with applications that are distributed over several machines. Otherwise, clustered application. May be its just me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Question
 
Similar Threads
Tech Word Game
adding tomcat 6.0 error
single threaded or multi threaded
StuckThreadMaxTime Error.
Deploy Java Application On Customer Side?