Re: ERJavaMail and system properties
Re: ERJavaMail and system properties
- Subject: Re: ERJavaMail and system properties
- From: Mike Schrag <email@hidden>
- Date: Sun, 2 Mar 2008 03:12:33 -0500
my system properties are not recognized by ERJavaMail. It complains with the following message:
I have already tried to set them in code just before mail delivery starts. Only ERJavaMail and ERExtensions frameworks are linked into my project.
define "set them in code". If you're trying to set system properties in code, you're probably "too late" to do it. Once the framework has initialized, it does not look at the values in code. You should either set them in your Properties file, set them as -D system properties on the commandline, or set them via the API on ERJavaMail.sharedInstance() after the framework has initialized. The recommended method is to set them in Properties. If you set system properties, you will need to call ERJavaMail.sharedInstance().initializeFrameworkFromSystemProperties() (never tried this, but it should work). Again, though, I would just set them in your Properties file.
ms |
_______________________________________________
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