Re: setting properties ??
Re: setting properties ??
- Subject: Re: setting properties ??
- From: Johann Werner <email@hidden>
- Date: Mon, 24 Oct 2011 10:06:25 +0200
Am 23.10.2011 um 13:34 schrieb Theodore Petrosky:
> […]
>
> er.javamail.centralize was set to false in the application constructor. However it was ignored and when I looked at the logs in the mail server I see that the toAddress was "email@hidden".
>
> which was odd as I was setting the adminEmail in the application constructor also.
>
> After experimenting I find that these two properties do not 'stick' even though my log statements claim that the values are correct.
>
> ERXProperties.setStringForKey("false", "er.javamail.centralize");
> ERXProperties.setStringForKey("email@hidden", "er.javamail.adminEmail");
>
> bottom line, I got things to work, just not as I expected. Is this correct? Should I be adjusting the properties in the application constructor? If not, then where. Or maybe the better question is, "Is there a better way to do this?"
>
>
> Ted
I would suppose that ERJavaMail was already initialized when you reached the application constructor so your property changes did not modify those values for the framework anymore. Kieran's suggestion should resolve your problem.
jw
_______________________________________________
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