• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: storing objects in a WOApplication object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: storing objects in a WOApplication object


  • Subject: Re: storing objects in a WOApplication object
  • From: Miguel Arroz <email@hidden>
  • Date: Tue, 11 Jul 2006 09:00:59 +0100

Hi!

Your WO application should have a WOApplication subclass, called Application. This is a normal Java class, where you may add all the data and methods you want.

To obtain the current Application object, just call Application.application() (see WOApplication doc for details).

Please keep in mind that WO apps should be ready to be run in several concurrent instances. This means you need to take care of global values in a special way, as one instance of the application cannot, naturally, access data from the other. You should store global data in the DB and read it when needed.

  Yours

Miguel Arroz

On 2006/07/11, at 02:23, Luke Vanderfluit wrote:

Hi.

I have now solved this problem.
Kr.


Hi.

I'm very new to webobjects.

I'm trying to store an object in an application object.

I know that the WOApplication object is available but how do I put an
object in there, that I can retrieve at a later point.

Any help appreciated.

Kind regards.
Luke.

Luke Vanderfluit
Java Web Developer
Wellcom Group Limited




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com


This email sent to email@hidden


      "I felt like putting a bullet between
       the eyes of every Panda that wouldn't
       scr*w to save its species."       -- Fight Club

Miguel Arroz
http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >storing objects in a WOApplication object (From: Luke Vanderfluit <email@hidden>)

  • Prev by Date: Re: Sample Launchd plists for WO Monitor and wotaskd
  • Next by Date: Re: WWDC WO Meet
  • Previous by thread: storing objects in a WOApplication object
  • Next by thread: Sample Launchd plists for WO Monitor and wotaskd
  • Index(es):
    • Date
    • Thread