File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Singleton Deployment?" Watch "Singleton Deployment?" New topic

Singleton Deployment?

Ginni Machamer

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?


David Newton

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:
subject: Singleton Deployment?
It's not a secret anymore!