Two Laptop Bag*
The moose likes Java in General and the fly likes share same object between 2 different web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "share same object between 2 different web application" Watch "share same object between 2 different web application" New topic
Author

share same object between 2 different web application

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
Hi,

i have Project A , and Project B. Both projects are depend on project C.

when i use web web application A to use object in project C to store some information, i also want the same information could be shown in project B by using the same object from project C. how can i do it? i know the objects are initialized in different class loader.

thank you
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

RMI perhaps?

But, would it not be better to share the information through a shared database?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
tx, i will use derby
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19684
    
  20

jim li wrote:tx

Sorry to nitpick, but please UseRealWords: "thanks".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: share same object between 2 different web application