Re: Where does the Exchange 2000 Event Service get its session?
- From: nickdu <nicknospamdu@xxxxxxxxxxxxxxxx>
- Date: Mon, 11 Dec 2006 06:46:01 -0800
Thanks. I guess I should have mentioned this initially, I'm not using script
but instead writing a custom agent. And because of a deadlock bug in
MAPILogon() I'm remoting the processing of the message which triggered the
event to another process so that I can control the MAPILogon() (and calls to
OpenMsgStore() which appear to call through to the logon code). I therefore
have this agent which serializes the information from the message (message
entryID and message store entryID) and send it along to a service I wrote.
That service needs to call OpenMsgStore() giving it the entryID of the store
which contains the message and then calls OpenEntry() specifying the message
entryID. It then does whatever processing it needs to do on the message.
My service needs to have access to an IMAPISession. I was thinking that I
would create a session the same way the Event Service does. Or maybe the
same way that the script agent does.
Not sure if I explained it well enough.
And by the way, the client has no plans to move this logic into Exchange
2003 event sinks. We therefore plan to stick with the Event Service.
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
"Glen Scales [MVP]" wrote:
The event service is there for backwards compatibility with Exchange 5.5 the.
operation of the service hasn't really change on Exchange 2x so the
information on http://www.cdolive.com/agent3.htm and
http://msdn2.microsoft.com/en-us/library/ms998510.aspx should still be
relatively correct. There is no mailbox you need to configure for the event
service you just need to make sure the account the service is set to run
under has the appropriate rights to whatever folder you want to use agents
on and also rights to the eventconfig_servername folder in the Event Root
public folder.To get to the session object in an Agent script use
"EventDetails.Session: The object that represents the CDO session the agent
is currently logged on as. Because a script is handed this logged-in CDO
session, it automatically has access to all CDO objects such as messages,
appointment items, and Exchange directory information for lookups. "
Cheers
Glen
"nickdu" <nicknospamdu@xxxxxxxxxxxxxxxx> wrote in message
news:52D4E8EE-B955-414F-B7B9-E05A82722054@xxxxxxxxxxxxxxxx
I'm wondering where the Exchange 2000 Event Service gets its session. The
only way I know how to get a session is to call MAPILogon(). And from
what
I'm told from people who are running the event service is that they see no
settings which specify a mailbox for the event service. Is there one
specified somewhere? If not, how does it get the session? Can you call
MAPILogon() and specify a public store?
By the way, I also posted this on the msdn Exchange 2000 development
newsgroup. Not sure the difference between this newsgroup and that one.
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
- References:
- Re: Where does the Exchange 2000 Event Service get its session?
- From: Glen Scales [MVP]
- Re: Where does the Exchange 2000 Event Service get its session?
- Prev by Date: working with CDO
- Next by Date: Re: Problem creating an mailbox through code
- Previous by thread: Re: Where does the Exchange 2000 Event Service get its session?
- Next by thread: working with CDO
- Index(es):
Relevant Pages
|