Science, asked by Manishbottu2295, 1 year ago

How can I share data between two different web applications?

Answers

Answered by sanukj
0
One of the major purposes of Web applications is to keep data separate. Each Web application maintains its own table of sessions and its own servlet context. Each Web application also uses its own class loader; this behavior eliminates problems with name conflicts but means that static methods and fields can't be used to share data among applications. However, it is still possible to share data with cookies or by using ServletContext objects that are associated with specific URLs. 
Similar questions