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:
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:
A usage relationship between a session or entity bean and the actor indicates that the bean produces a message for the queue. |