This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Singleton Deployment? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Singleton Deployment?" Watch "Singleton Deployment?" New topic
Author

Singleton Deployment?

Ginni Machamer
Greenhorn

Joined: Aug 18, 2009
Posts: 3
I have a singleton (collection of POJO objects) I want to make available to all apps on my OC4J app server. I have searched, but failed to find, what I need to do to deploy this singleton, get it loaded initially, refresh it once a day, and then access it from another application.

Can anyone point me to some reference(s) on this, please?

Thanks!

Ginni
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Put it in the application context, use Quartz to update it daily.

As far as using it in *another* application, that's a different issue, and depends on several factors. One of the most general-purpose solutions would be to expose the data as a web service.

This isn't really a general Java question; it should probably be in servlets... or something.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Singleton Deployment?
 
Similar Threads
Singleton in SWING
Singleton Question
Singleton Factory Object
Doubt with a singleton class
Generic Singleton Class