Re: DirectAction URLs
Re: DirectAction URLs
- Subject: Re: DirectAction URLs
- From: email@hidden
- Date: Thu, 8 Sep 2005 15:35:56 +0200
Get the best of both worlds:
Move your mailing code out of the EO
into a direct action
Move your timer out of the Java code
into an external tool like crontab
Have the external tool call the direction
Within the direct action you will have
access to a legitimate WOContext
Pierre
webobjects-dev-bounces+pierre.bernard=email@hidden
wrote on 09/07/2005 08:46:53 PM:
> On Sep 7, 2005, at 2:36 PM, Chuck Hill wrote:
>
> > On Sep 7, 2005, at 10:34 AM, David Schneider-Joseph wrote:
> >
> >> Thanks, that looks useful. However, emails will often
be sent by
> >> the Application object,
> >
> > I'm not sure that is the best design, but I'll let you worry
about
> > that.
>
> This is because some emails will be sent on a timer, and those timers
> need to be active even when no sessions are active. Actually,
the
> emails are directly sent by the "Message" enterprise object
I've
> created, but either way they don't have access to a WOContext object.
>
> >> without a WOContext present. It seems ugly to create
a fake
> >> WOContext just to achieve this result, no?
> >>
> >>
> > Uglier than duplicating the code in WOContext in your code?
>
> I feel that way, yes. :-\
>
> David Schneider-Joseph
> http://www.davidsj.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
>
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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