• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message bean Sequence diagram

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry if am wrong. Please be sure your requirement has support for a MOM.Thanks
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic