Accessing Microsoft Outlook from a Java applet

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Pope

    Accessing Microsoft Outlook from a Java applet

    Hello Everybody,

    I'm preparing for doing a daunting task: to access Out look Microsoft
    Outlook Express(regardl es the operating system and Outlook version) from a
    Java applet (after the client (user) acknowleges to run this applet on his
    machine).
    The user has to read the existent user Microsoft Outlook users accounts and
    to setup another Microsoft Outlook user accont.
    As I know so far, that the only way is to access from the applet a .COM
    object on the client machine and this has the capability to access the
    Outlook.
    I am wondering if there can be other more direct ways from Java to read the
    current user accounts settings such accessing the windows system registry
    for Outlook records (or other way).
    Is it possible to read the windows client registry (for Outlook from java
    applet- after the user acknowledges this action of course)?
    Thank you in advance for any eventual hints!

    Daniel







  • Silvio Bierman

    #2
    Re: Accessing Microsoft Outlook from a Java applet


    "Daniel Pope" <daniel-po@shaw.ca> wrote in message
    news:6Y6_b.5948 62$ts4.484069@p d7tw3no...[color=blue]
    > Hello Everybody,
    >
    > I'm preparing for doing a daunting task: to access Out look Microsoft
    > Outlook Express(regardl es the operating system and Outlook version) from[/color]
    a[color=blue]
    > Java applet (after the client (user) acknowleges to run this applet on his
    > machine).
    > The user has to read the existent user Microsoft Outlook users accounts[/color]
    and[color=blue]
    > to setup another Microsoft Outlook user accont.
    > As I know so far, that the only way is to access from the applet a .COM
    > object on the client machine and this has the capability to access the
    > Outlook.
    > I am wondering if there can be other more direct ways from Java to read[/color]
    the[color=blue]
    > current user accounts settings such accessing the windows system registry
    > for Outlook records (or other way).
    > Is it possible to read the windows client registry (for Outlook from java
    > applet- after the user acknowledges this action of course)?
    > Thank you in advance for any eventual hints!
    >
    > Daniel
    >
    >
    >[/color]

    Daniel,

    You will need native code for that. Most likely you must download, save and
    load a windows DLL from the applet and do native calls to that DLL. The
    applet will need to be signed for that. You can do anything you like from
    the DLL uncluding Outlook(Express ) and the registry (not that any
    interesting Outlook data is in there).

    Regards,

    Silvio Bierman


    Comment

    • Daniel Pope

      #3
      Re: Accessing Microsoft Outlook from a Java applet

      Thanks for your hints Silvio. So, I have to write a dll (C++) to access
      Outlook or windows registry using COM calls.
      For what I need (getting and setting only Outlook accounts) seems that
      dealing with windows registry is enough.
      What do you mean by "applet must to be signed"? Does it mean a kind of
      certification that the user can see and after approve to allow the applets
      perform enhanced security tasks?

      Kind regards,
      Daniel


      "Silvio Bierman" <sbierman@idfix .nl> wrote in message
      news:40394205$0 $572$e4fe514c@n ews.xs4all.nl.. .[color=blue]
      >
      > "Daniel Pope" <daniel-po@shaw.ca> wrote in message
      > news:6Y6_b.5948 62$ts4.484069@p d7tw3no...[color=green]
      > > Hello Everybody,
      > >
      > > I'm preparing for doing a daunting task: to access Out look Microsoft
      > > Outlook Express(regardl es the operating system and Outlook version)[/color][/color]
      from[color=blue]
      > a[color=green]
      > > Java applet (after the client (user) acknowleges to run this applet on[/color][/color]
      his[color=blue][color=green]
      > > machine).
      > > The user has to read the existent user Microsoft Outlook users accounts[/color]
      > and[color=green]
      > > to setup another Microsoft Outlook user accont.
      > > As I know so far, that the only way is to access from the applet a .COM
      > > object on the client machine and this has the capability to access the
      > > Outlook.
      > > I am wondering if there can be other more direct ways from Java to read[/color]
      > the[color=green]
      > > current user accounts settings such accessing the windows system[/color][/color]
      registry[color=blue][color=green]
      > > for Outlook records (or other way).
      > > Is it possible to read the windows client registry (for Outlook from[/color][/color]
      java[color=blue][color=green]
      > > applet- after the user acknowledges this action of course)?
      > > Thank you in advance for any eventual hints!
      > >
      > > Daniel
      > >
      > >
      > >[/color]
      >
      > Daniel,
      >
      > You will need native code for that. Most likely you must download, save[/color]
      and[color=blue]
      > load a windows DLL from the applet and do native calls to that DLL. The
      > applet will need to be signed for that. You can do anything you like from
      > the DLL uncluding Outlook(Express ) and the registry (not that any
      > interesting Outlook data is in there).
      >
      > Regards,
      >
      > Silvio Bierman
      >
      >[/color]


      Comment

      • Silvio Bierman

        #4
        Re: Accessing Microsoft Outlook from a Java applet


        "Daniel Pope" <daniel-po@shaw.ca> wrote in message
        news:Kic_b.5964 68$ts4.236102@p d7tw3no...[color=blue]
        > Thanks for your hints Silvio. So, I have to write a dll (C++) to access
        > Outlook or windows registry using COM calls.
        > For what I need (getting and setting only Outlook accounts) seems that
        > dealing with windows registry is enough.
        > What do you mean by "applet must to be signed"? Does it mean a kind of
        > certification that the user can see and after approve to allow the applets
        > perform enhanced security tasks?
        >
        > Kind regards,
        > Daniel
        >[/color]

        Daniel,

        I hint at first : it is usually preferred by newsgroupreader s that you not
        toppost, meaning that you put your response at the bottom of the message.

        Signing an applet depends on which environment you want it to run in. Look
        at http://mindprod.com/jgloss/signedapplets.html for info on this (got this
        link from Google just now, there are many more references).
        It basically links a certificate to your applets that tells users who wrote
        the thing (and could be sued if it shows malicious conduct). If the
        certificate is backed up by Verisign and the like (think $$) then it will
        run without confirmation from users by default. If not (you can cook your
        own certificate) users will by default be prompted whether they want the
        applet to run. Either way the applet gets extended permissions to do things
        "normal" applets can not do like accessing the local file system, running
        native code, doing unrestricted network-IO, accessing ports etc.

        Hope this helps,

        Regards,

        Silvio Bierman


        Comment

        Working...