How can I share data between two different web applications?

Wayne Xin

Different servlets may share data within one application via ServletContext. If you have a compelling to put the servlets in different applications, you may wanna consider using EJBs.

[You can also use a database, or use the file system, but it's difficult to share the data inside the JVM. Even using statics may not work, since the two web applications may be using different classloaders. -Alex]

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact