web services - Interconnect applications- Java EE -


i have 3 web applications. have common set of functionality io operation:- write text file , access written data. going separate function (file writing) single application accepts requests application , write text files , returns when required.

actually session management between browser , server. each user connect server identical , each user treated separately. same required here between 3 applications , separated application , connected though http connection .

some set of instances of classes of seperated application should identical, seperated each calling applications.

this separated application supposed deployed war file. please guide me how can achieve ?
have use web services ? or rest ful services? sample sources projects/ codes, links highly appreciated.

web service option, specially because it's incredibly easy implement using javaee annotations.

one thing must consider in case ensure proper authentication, can sure services being exposed desired clients.

other option rmi.

i used work eclipse , tomee, in case need example, although, tomee site has examples - http://tomee.apache.org/examples-trunk/simple-webservice/readme.html

just sure, communication overhead necessary or wrap i/o logic jar? way way easier :-)


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -