Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get Data from another server

 
Rishabh Shah
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read my reply above? There are 3 questions in that reply. What are the answers to those questions.
 
Rishabh Shah
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So one approach is to make synchronous web service calls to the other applications.
 
Rishabh Shah
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok...Thanks A Lot !
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic