| 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
Ranch Hand
Joined: Mar 17, 2012
Posts: 220
|
|
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
Ranch Hand
Joined: Mar 17, 2012
Posts: 220
|
|
|
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
Ranch Hand
Joined: Mar 17, 2012
Posts: 220
|
|
|
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: 12271
|
|
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
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: Get Data from another server
|
|
|