jQuery in Action, 2nd edition*
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
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
Generic Singleton Class
Singleton Factory Object
Singleton in SWING
Singleton Question
Doubt with a singleton class