Re: Where does the Exchange 2000 Event Service get its session?



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



.



Relevant Pages

  • Re: Run SQL script on Instance Startup
    ... Run script on Instance Startup ... might feel better to have a client app (Agent) execute whatever TSQL ... might feel better to have a client app execute whatever TSQL commands you want to run ...
    (comp.databases.ms-sqlserver)
  • Re: OT: Umra posting statistics for May 2008
    ... rather than adding tabs (which can go all over the place if ... horror when I clicked on the "show formatting" button. ... language Jo's script is written in but something like C or Perl's ... always welcome :-) I'm just using Agent, ...
    (uk.media.radio.archers)
  • Re: KDE ssh-agent
    ... I just meant that if you tweak the script and then it gets updated via ... My script checks for a preexisting agent, and if it finds one, it ... before the xinitrc-common script runs, you should be able to easily work ...
    (Fedora)
  • Best practice when using data from external files
    ... I'm looking for some advice on the best practice when using external files to contain data. ... I work in a contact centre and have created a web based stats viewer for my team. ... The script would be smaller if the data file was singular but as the data expands this could take quite a while to read. ... If I have individual data files for each Agent then this would speed up usage, but then the script would become more complex. ...
    (perl.beginners)
  • small script --> huge load --> error message
    ... I'm sure everybody who works with javascript has seen this ... A script on this page is causing mozilla to run slowly. ... way to tell a javascript to give control back to the agent interface ... var oTable, oTHead, oTBody, oTFoot, oCaption; ...
    (comp.lang.javascript)