• 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
question on ERMailDeliveryHTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question on ERMailDeliveryHTML


  • Subject: question on ERMailDeliveryHTML
  • From: Timothy Worman <email@hidden>
  • Date: Thu, 23 Apr 2015 12:25:18 -0700

In my app I am tracking session creation - as a way to sniff out some issues I’ve had with some going stray. Anyhow, I am sending NSArray<EOGlobalID> to a background task that sends emails using ERMailDeliveryHTML. These are component based emails.

Low and behold, each and every one creates a new session. Certainly I understand why this could/would happen depending on the contents of the component/page.

I am most curiouser about what approaches decent WO folk might use to avoid this. This is how I’m abusing things:

 for(Object aPersonGlobalIdObject : approverIds.toArray()) {
      EOGlobalID aGlobalID = (EOGlobalID)aPersonGlobalIdObject;
      MyComponent _component = (MyComponent) ERMailUtils.instantiatePage("MyComponent", null);
      _component.setGlobalId(aGlobalID);
      try {
        _component.sendThisComponentToPerson();
      }
other stuff….
}

I had thought ERMailUtils.instantiatePage was made for doing this without creating a session? But I must have fooled myself.

Tim Worman
UCLA GSE&IS



 _______________________________________________
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

  • Follow-Ups:
    • Re: question on ERMailDeliveryHTML
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WO Components
  • Next by Date: Re: ERXExistsQualifier
  • Previous by thread: Re: WO Components
  • Next by thread: Re: question on ERMailDeliveryHTML
  • Index(es):
    • Date
    • Thread