Calling non-static method from application
Calling non-static method from application
- Subject: Calling non-static method from application
- From: Drew Thoeni <email@hidden>
- Date: Sat, 26 Feb 2005 16:06:05 -0500
I have created a WOTimer in the Application that runs background checks for timestamps that have expired.
Next I call a method (which is non-static) that is in the Application. This works as expected. But, I now have a method that belongs in another Class and is non-static. I, of course, get the "can't call non-static from static" error. And changing the method to static (which is not desirable in this case) causes, somewhat expectedly, a failure to update the database "
method failed to update row in database").
A couple of questions:
1) Is the right place for this WOTimer at the Application level?
2) What is the proper way to call non-static methods from the Application?
regards,
Drew
_______________________________________________
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