Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. COM+ architecture question

COM+ architecture question

Scheduled Pinned Locked Moved COM
questionhelpcomsysadminarchitecture
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Omer S
    wrote on last edited by
    #1

    The project I'm working on is moving from good old DCOM to COM+. I find it hard to solve one issue. Back in DCOM days, when you had data that had to shared by all the objects of a class, there was no problem holding inside the DCOM EXE server and letting all instances know of it (data such as a list of connected currently connected users, etc). How do I do it in COM+, as all objects are created through surrogate DLLs ? Thanks, Omer.

    D 1 Reply Last reply
    0
    • O Omer S

      The project I'm working on is moving from good old DCOM to COM+. I find it hard to solve one issue. Back in DCOM days, when you had data that had to shared by all the objects of a class, there was no problem holding inside the DCOM EXE server and letting all instances know of it (data such as a list of connected currently connected users, etc). How do I do it in COM+, as all objects are created through surrogate DLLs ? Thanks, Omer.

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      If you are using a C++ server, it's simple, it's just a matter of creating a global DLL variable. If you want to use the COM+ way, or for VB DLLs, you can use the Shared Property Manager (SPM), which is designed exactly for this. I see dumb people

      O 1 Reply Last reply
      0
      • D Daniel Turini

        If you are using a C++ server, it's simple, it's just a matter of creating a global DLL variable. If you want to use the COM+ way, or for VB DLLs, you can use the Shared Property Manager (SPM), which is designed exactly for this. I see dumb people

        O Offline
        O Offline
        Omer S
        wrote on last edited by
        #3

        I need a whole Data structure (and not a simple one). If I understand correctly, what you suggest is to wrap it up with COM and pass it around to all instances this way or another. Isn't there a simpler solution ?

        A 1 Reply Last reply
        0
        • O Omer S

          I need a whole Data structure (and not a simple one). If I understand correctly, what you suggest is to wrap it up with COM and pass it around to all instances this way or another. Isn't there a simpler solution ?

          A Offline
          A Offline
          AboMalek
          wrote on last edited by
          #4

          No you don't need to wrap it with a com object, simply you need to keep your data structure as a global variable to the dll module then provide a code that manipulate that structure with a multi-threaded-safe fasion and you are done. if you want to avoid writing syncronization code you can rely on the sahred property manager as daniel advised. AbuMalek

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups