Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Distributed Java and the fly likes Get Data from another server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Get Data from another server" Watch "Get Data from another server" New topic
Author

Get Data from another server

Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
Hello Everyone,

I am currently working on a project. which is online booking application of air-ticket by agents. In this project, When user search for any flight, it gets data from another server. and it gives data on page about list of flight which is available. I want to do same thing. how can i do that ? and what does it call ?
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Consider the two applications that are communicating.
Are they all written in Java?
Are they running on the same intranet or is it over the internet?
Are they running on the same computer?

You need to consider all these before making the decision. If they are in an intranet then maybe a remote EJB call will suffice.
If across the internet then perhaps a webservice call. Either way, study the value list handler pattern for this so that you reduce network overhead and
don't end up returning thousands of records when the user can only view ten at a time.
Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
I give you an example. I search flight for tonight 10 o'clock. and it will give me list of different flight of jet airways, kingfisher, air India. so, this data comes from another server. How can I display those data from another sever ?
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Did you read my reply above? There are 3 questions in that reply. What are the answers to those questions.
Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
Are they all written in Java? Yes
Are they running on the same intranet or is it over the internet? Internet
Are they running on the same computer? NO
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
So one approach is to make synchronous web service calls to the other applications.
Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
Ok...Thanks A Lot !
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
An obvious question:

What is already running on the server that is going to supply the list of flights?

Is it a public web service showing web pages or what?

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get Data from another server