• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble setting properties in ERJavaMail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble setting properties in ERJavaMail


  • Subject: Re: Trouble setting properties in ERJavaMail
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 29 Mar 2007 14:12:38 -0400

In your project there is a file named Properties in the Resources folder. If using Eclipse, you may need to adjust the project explorer filter settings since it may be hidden if you don't see it. Anyway, you can put property settings in there. You can put custom ones for your app, WebObjects and/or also override properties that are used in any Frameworks. For example if you look at the Wonder frameworks, most properties are in the Properties file in those frameworks, often with default values and/or commented out just so you know the Properties exist.

Of course to learn what a property does in Project Wonder, you should search the framework source to see its usage and then you know what it does! .... don't worry, searching Wonder source is good for you and will teach you more about WebObjects *and* Project Wonder! Also, as you examine the source, you will discover "undocumented" useful properties that you can use.

The main thing is to override and set Wonder Properties in your app Properties file. Changing the Properties file inside the Wonder frameworks is not good since it will be blown away when you download new version.

HTH, Kieran

On Mar 29, 2007, at 12:38 PM, Kevin Windham wrote:

I'm struggling trying to figure out where the properties file is supposed to be that loads in settings for ERJavaMail. I have searched and found listings of the properties I should set to fix my problem, but I can't figure out where to put them. I have tried putting them in the properties file in my project directory, and I have tried putting them in the properties file in the framework itself. No matter where I put this,

# * Enables ERJavaMail to send all the mails to only one destination
# This is useful when debugging
er.javamail.centralize = false


I still get this,

Exception sending email: java.lang.IllegalArgumentException: When setting 'er.javamail.centralize=true' (which means you just test sending mails), you must also give a valid 'er.javamail.adminEmail=email@hidden' to which the mails are sent.


I have downloaded the latest build of Project Wonder as well since I found an old thread that suggested there was bug loading properties.


Can anyone point me in the right direction.

Thanks,
Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Trouble setting properties in ERJavaMail (From: Kevin Windham <email@hidden>)

  • Prev by Date: Re: Project architecture
  • Next by Date: Re: Project architecture
  • Previous by thread: Re: Trouble setting properties in ERJavaMail
  • Next by thread: Handling invalid URLs
  • Index(es):
    • Date
    • Thread