Antonio Mirarchi wrote:
Hi i have some questions about SCA assembly specification and Java
annotation.
1) What is the difference betwenn use a Java interface marked with
@Conversational annotation and use the same Java interface marked with
@Scope("Conversation") ?
>
You can't mark a Java interface with @Scope("Conversation"). The @Scope
annotation is only used for implementation classes.
2) If i have a java interface marked with @Conversational annotation the
implementation class must be annotated with @Scope("conversation")?
>
Not "must be" but "should be". There are some obscure cases where the
implementation class can be given a different scope such as Composite.
Although this is legal, I don't think it's very useful.
3) What is the difference between annotation @Conversational and
annotation @Scope("Conversation")?
@Conversational is only used on interfaces and @Scope is only used on
implementation classes.
Simon
thanks for your answers.