Question

I'm trying to simulate my packages using the UML package diagram:

Package diagram:

enter image description here

I've one web app and two desktop apps whom use RPC to comunicate with remote components. Is this how to draw a package diagram

Was it helpful?

Solution

So, continuing are conversation from the comments, here goes the diagram:

enter image description here

Please take a carefull look and give me your feedback. Especially on the pink note with my questions.

As you can see, I used components instead of the packages in order to be able to eventually add a deployment diagram and assign the components to corresponding nodes. Although package diagram is also valid, it does not permit eays traceability to nodes of the desployment diagram.

Note the interface of the DBAccess component. In this case it indicates the RPC nature of the dependencies.

Furtner you can add on or more class diagrams for each component, modelling their internal structure. Be sure to respect the interface in this case and show classes with interface.

UPDATE (after the 1st comment)

Fixes:

  • WebApp spaks directly to the DB
  • B and C communicate via sockets. C is a socket server and B initiates the connection (client). Note that this is a plain unidirectional dependency. In case that both can open the connection, just draw another interface, as provided by B (symetrical situation).

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top