Stereotypes of the UML-to-EJB 3.0 transformation profile

The UML-to-EJB 3.0 transformation profile contains stereotypes that you can apply to classes, interfaces, operations, and actors. Each stereotype has a set of previously defined valid attributes and types.

The following table lists the stereotypes of the profile and their related properties and types.

Stereotype Applies to Properties Constraints Generated code
«MessageDriven» Classes     Java class with a @MessageDriven annotation

If the class specifies a usage relationship with a topic or queue, the transformation generates a Java Message Service (JMS)  message-driven bean.

«Stateful» Classes   The bean must implement a local or remote interface Stateful session bean, that is, a Java class that contains a @stateful annotation
«Stateless» Classes   The bean must implement a local or remote interface. Stateless session bean, that is, a Java class that contains a @stateless annotation
«LocalInterface» Interfaces     Local interface, that is, a Java interface that contains a @Local annotation
«RemoteInterface» Interfaces     Remote interface, that is, a Java interface that contains a @Remote annotation
«Interceptor» Usage relationships from a bean or an operation in a bean to a class     Java bean class or operation that contains an @Interceptor annotation that specifies the Java class or operation as a property
«AroundInvoke» Operations     Java operation that has a signature and an @AroundInvoke annotation.
«SQL» In a sequence diagram, this stereotype applies to messages between message-driven or session beans and data sources Value, which contains an SQL statement that queries the data source in the sequence diagram    
«Queue» Actors Connection, which defines a connection string   A usage relationship between a message-driven bean and the actor indicates the following things:
  • The bean is a JMS message-driven bean
  • The destination name of the generated bean is derived from the name of the actor
  • The Connection property defines the generated connection factory name

A usage relationship between a session or entity bean and the actor indicates that the bean produces a message for the queue.

«Topic» Connection, which defines a connection string   A usage relationship between a message-driven bean and the actor indicates the following things:
  • The bean is a JMS message-driven bean
  • The destination name of the generated bean is derived from the name of the actor
  • The Connection property defines the generated connection factory name

A usage relationship between a session or entity bean and the actor indicates that the bean produces a message for the queue.


Feedback