This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741
    
  65

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: 19649
    
  18

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: share same object between 2 different web application
 
Similar Threads
desktop or web???
ibm websphere test 157 for websphere studio application developer 4.0.3 for windows
Webspere 345 exam questions
157 Question Help and Resourses
ICE Test 285 solved 100 %