Annotation Interface OfProperty


@Retention(RUNTIME) @Target(PARAMETER) public @interface OfProperty
Specifies the binding point for a JMS property. The annotation can be applied on both the client side, i.e., ByJms interfaces, and the server side, i.e., ForJmsType classes.

On the client side, applied to a parameter on a ByJms interface, it specifies the name and argument of the JMS property for the out-going message.

On the server side, applied to a parameter of a ForJmsType Invoking method, it specifies the injection point for the value of the named property of the in-coming message.

All properties will be set/get via Message.setObjectProperty(String, Object) or Message.getObjectProperty(String). No type checking, conversion or validation will be done.

When the value is not specified, the property name is inferred from the parameter name with the first letter capitalized. For this to work properly, '-parameters' compiler option is probably desired.

Only application properties are supported, no JMS headers.

Since:
1.0
Author:
Lei Yang
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the property.
  • Element Details

    • value

      String value
      The name of the property.
      Default:
      ""