How can I share data between two different web applications?
Answers
Answered by
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
India Languages,
7 months ago
Social Sciences,
7 months ago
English,
7 months ago
Chemistry,
1 year ago
Science,
1 year ago