Well, I have not drank the Eclipse/WOLips Kool-Aid yet, but am trying :-)
Turns out the problem was the value was being overridden in multiple places.
I first thought it was due to the smtp setting in
Eclipse->Preferences->WOLips->Launch.
I unchecked that and figured that would do the trick, but was still not
getting the
correct value.
I finally discovered there is yet another area where this value could be
overridden.
When I right-clicked on the project name and selected Run As, instead of
just selecting WOApplication and then Application, I just clicked on Run
As->Run.
This brought up a panel where I noticed there was a WO tab and when I
clicked on
that, I saw the standard arguments listed and when I unchecked smtp host in
that
section, it finally picked up the value in the Properties file.
Whew.
- Gary
On 6/27/07, Kieran Kelleher <kieran_list..ac.com> wrote:
>
>
> On Jun 27, 2007, at 4:07 PM, Gary Hunt wrote:
>
> Greetings,
>
> I'm taking the plunge from Xcode to Eclipse/WOLips now
>
> About time
>
> and hit a snag
> on setting the SMTP host in my app.
>
> It does not seem to be reading the WOSMTPHost value in the app's
> Properties file.
>
> I noticed that in the Eclipse preferences, you can set the WOLips
> Launch argument for WOSMTPHost. I tried changing it there, but
> it insists on using a default value of "smtp".
>
> What's the proper way of setting this in Eclipse/WOLips?
>
> Properties file works fine for me. I use these settings defining three
> properties (I use Wonder substitution feature so I only define it once)
>
> my.smtpserver=smtpserver.mydomain.com
>
> WOSMTPHost..my.smtpserver@@
> log4j.appender.myMail.SMTPHost..my.smtpserver@@
> er.javamail.smtpHost..my.smtpserver@@
>
>
> A good idea is to use Project Wonder's ERJavaMail and turn on the debug
> feature if smtp mail is giving you trouble.
>
>
> Thanks!
>
> --
> Gary Hunt
>
>
>
-- Gary
This archive was generated by hypermail 2.0.0 : Thu Jun 28 2007 - 11:42:16 EDT