2013年9月16日星期一

How to visit two web projects

A B web SSH Structural Engineering

respectively, in A1 B1 A1 B1 on both machines to the same network segment
A
how the data inside the action presented to B B to do it after the processing returns to the A ?

Seek expert answers
------ Solution --------------------------------- -----------
with webservice, specifically how to get it possible that you need to look at some of the things associated
------ Solution --------- -----------------------------------
If A project needs to access a method in project B , then B works out this method will provide an interface , you can use webservice technology can also use other techniques to access the interface , similarly if B needs access to a , too, so you can not achieve a mutually accessible. Another way is to put both projects on the same server , configure the tomcat , specifically how to configure my not very clear, but done before the project is indeed to be such a thing. Forgotten. To look up information on it !
------ Solution ---------------------------------------- ----
webservice ..


Baidu axis2 webservice. .
------ Solution ---------------------------------------- ----
Hey , only to find my reply was eaten .

two strategies :
◎ ability to achieve through the browser :
1, the A project initiated by the B project actionURL AJAX POST request and obtain feedback data ;
2, A project can also directly in the page , the goal will be to point B FORM engineering actionURL, then B works actionURL processing is complete, re- engineering POST back to A , or URL with parameters jump is also OK ;

◎ With server-side capabilities to achieve :
1, with HTTPClient project B actionURL to initiate a POST request , and then get feedback issue , dealt with after the show JSP;
2, B works with application integration , with the Spring-Remote EJB or WebService or the like .

In general, if B function can not be modified , basically with < 1> means .
However, in addition to strategy two means <2> , other means of protection issues will be faced with permission , unless your features are accessed without authorization .
------ Solution ---------------------------------------- ----
use of java on webservice
------ Solution ---------------------------- ----------------
use webservice to provide services , the other party to obtain ws return value.

------ For reference only ---------------------------------- -----
like before someone asked a similar question . I let him use activeMQ, he did not reflect . Oh . . .
------ For reference only -------------------------------------- -
try hessian
------ For reference only ------------------------------- --------
this is not a cross-domain access it ? You can use the javascript url Jump to achieve
------ For reference only ----------------------------- ----------
  The reply on 2012-04-12 10:05:32 deleted by moderator

------ For reference only ---------------------------------- -----
achieve serializable class objects can be transmitted over the network to another host on the jvm to use , provided that the two jvm have this class object of the class , but the entire package name must be consistent with what Caixing !
------ For reference only -------------------------------------- -
a send an http request ( eg url with parameters ) to b, b to return data ( eg xml) to a.

webservice serialization Han too much trouble, a variety of methods which choose the most simple.
------ For reference only -------------------------------------- -
if only the background data exchange words , socket , or you can visit http ajax
If so, you can use jsonp
------ For reference only -------------------------- -------------
Since there spring, then use http invoke
------ For reference only ----------- ----------------------------
direct access to the project is estimated not communicate with each other via two ways to complete the data interaction.
------ For reference only -------------------------------------- -
brother Caishuxueqian , really do not understand ah
------ For reference only -------------------------- -------------
landlord how to achieve ?

没有评论:

发表评论