• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message bean Sequence diagram

 
Kate Young
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we use a message driven bean, how do we show it in the sequence diagram since it only listens for messages and is not directly invoked by any class?
 
Jose Latrefoliere
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your sequence diagram add a subsystem with stereotype "JMS Server" and name it XXXQueue (if you use a queue).
One of your object will send an asynchronous message to the jms server and the JMS server forwards (asynchronously )this message to the MDB. You may add a stereotype "<<send>>" to this message.
You should use asynchronous messages !

Regards

Jose
 
Jose Latrefoliere
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another thing, if you use UML 1.4, represent the JMS server as an actor.In UML 1.4,one way to model external systems is to use actor as classifier.

Regards

Jose
 
David Follow
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kate,

are you using MDB for Part II?
I would be interessted in where you see async. communication?

D.
 
Kate Young
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jose. I didn't know you could use MDB for synchronous communication. So it will be asynchronous. David, I am using it for email.
 
subu ananthram
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am also using MDB for sending email to customers. How do we add a subsystem in the sequence diagram? I am using Rose and coudnt find such an option. So I represented the JMS Queue as an Object. Not sure if this is right.
Any comments.
Subu
 
Jose Latrefoliere
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Subu

Usually, in a sequence diagram, external systems are represented as Actors, with a stereotype which gives identification of the type of system.The other way is to represent any external system as a stereotyped object.
The 2 are UML compatible.

Regards
Jose
 
leevisa asinveel
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if am wrong. Please be sure your requirement has support for a MOM.Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic