Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example lets say we want to create our own annotation called MyAsyncService@MyAsyncService

Code Block
java
java
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})

// lets add the message exchange pattern to it
@Pattern(ExchangePattern.InOnly)

// lets add some other annotations - maybe transaction behaviour?

public @interface MyAsyncService {
}

...