Hello Santiago,
I think it is a very good praxis to separate the white-box view for different technologies, say direct EJB access vs. WebService, into different class diagrams (though it is not a "must").
However your first sentence "A class diagram shoul be technology independet" is too rigid and thereby confusing, because the second class diagram is a class diagram too
Later you say yourself: "You can put this ... in other diagram, like a ... technology class diagram".
I would encourage to
- show all components of
both technologies (EJBs vs. WS ...) in one and the same component diagram,
- show
both components along with the interfaces that both realize, and then
- specify the white-box view of each component in a separate small class diagram (if not too trivial).
Or, if it becomes too huge,
- show all components of
one technology (either EJBs or WS ...) in one component diagram each,
- show
one type of components along with the interfaces that it realizes, and then
- specify the white-box view of each component in a separate small class diagram (if not too trivial).
In general there is a good reason to show EJBs in class diagrams too. For EJBs it is quite unusual to show the interfaces (although thay would even tell more!). Other types of components like JSPs do not even have interfaces that we could show in class diagrams. And if we can not show the interface then in my opinion we should show the class of the component in the big class diagram, if any.
Thomas
[ June 16, 2006: Message edited by: Thomas Taeger ]