Re: ERJavaMail problem

David LeBer <[email protected]> Wed, 7 Sep 2011 10:09:30 -0400
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On 2011-09-07, at 9:51 AM, Ond=C5=99ej =C4=8Cada wrote:

> David,
>=20
> On Sep 7, 2011, at 3:18 PM, David LeBer wrote:
>=20
>>>>> I went by this quickstart recommendation:
>>>>>=20
>>>>> =
http://homepage.mac.com/kelleherk/iblog/C183784902/E2093239404/index.html
>>=20
>> Hmm, yeah: "This article is OBSOLETE and the content has been =
removed!"
>=20
> I'll be damned -- yesterday it did look quite normally :-O
>=20
>>> I don't use either -- the only part of ER/Wonder I (am trying to) =
use is ERJavaMail. The rest is "pure WebObjects", so to speak. So, =
there's just -- as always -- Application extending WOApplication and =
Session extending WOSession.
>>>=20
>>> I've inferred from the "quickstart" above that it should be =
possible? Is it not, i.e., can't ERJM work "alone"?
>>>=20
>>> Thanks a lot and best
>>=20
>> ERXApplication is going to handle the properties setup and framework =
initialization for ERJavaMail for you. You'll need to handle that =
yourself if you don't extend it.=20
>=20
> I'm willing to, but can you suggest how?
>=20
> I'd be quite contended with sending the =
initializeFrameworkFromSystemProperties message to the shared ERJavaMail =
instance before using; the problem I so far was not able to solve is =
that it crashes (since the ERJavaMail.isValidEmail method inside raises =
the null exception).

Sorry, ERJavaMail was the framework that got me using Wonder. I've not =
created a non-Wonder app since. Without reading through ERXApplication =
and the ERJavaMail principal I don't have the steps necessary. Maybe =
someone else on the list has done this recently. You may be able to get =
away with just initializing ERJavaMail and ERExtensions.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org