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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/arroz%
40guiamac.com
This email sent to [EMAIL PROTECTED]
"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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]