Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS communication details in Sequence diagram

 
Claudiu Dumitrescu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to communicate with an external system using JMS.
Now, since my intention is to use EJB3 and have all the JMS objects (the ConnectionFactory and the Queue) injected via annotations by the EJB container, what level of details should I give to the sequence diagram?

I was thinking just to have a method in my EJB from which to create a self-call to depict the QueueSender creation and then just to call the remote Queue using a send method.
Is this acceptable or it doesn't make any sense? Should I depict QueueSender actual creation by adding the objects to the diagram?

To explain me better I add the diagram removing any other specific information to my case

Any help will be great as I'm stuck for two days on this not being able to decide which way to go.

Claudiu
SequenceDiagram.jpg
[Thumbnail for SequenceDiagram.jpg]
SequenceDiagram for JMS interaction
 
Jesson Joy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in a similar quandary. I've decided not to show the QCF and QueueSession interfaces in my sequence diagram as it is common knowledge and depicts a standard way of implementing JMS requirements.

What did you go with?

Claudiu Dumitrescu wrote:Hi,

I need to communicate with an external system using JMS.
Now, since my intention is to use EJB3 and have all the JMS objects (the ConnectionFactory and the Queue) injected via annotations by the EJB container, what level of details should I give to the sequence diagram?

I was thinking just to have a method in my EJB from which to create a self-call to depict the QueueSender creation and then just to call the remote Queue using a send method.
Is this acceptable or it doesn't make any sense? Should I depict QueueSender actual creation by adding the objects to the diagram?

To explain me better I add the diagram removing any other specific information to my case

Any help will be great as I'm stuck for two days on this not being able to decide which way to go.

Claudiu
 
K Zhang
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Jesson that JMS connection creation details is unnecessary to be included in the sequence diagram.
 
Bartosz Borowiec
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fully agree. Step 2 is implementation detail, with does not provide any valuable information from architectural point of view.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic