LibraryToggle FramesPrintFeedback

The Object Graph Navigation Language (OGNL) is a notation for invoking bean methods in a chain-like fashion. If a message body contains a Java bean, you can easily access its bean properties using OGNL notation. For example, if the message body is a Java object with a getAddress() accessor, you can access the Address object and the Address object's properties as follows:

<language language="simple">${body.address}</language>
<language language="simple">${body.address.street}</language>
<language language="simple">${body.address.zip}</language>
<language language="simple">${body.address.city}</language>

Where the notation, ${body.address.street}, is shorthand for ${body.getAddress.getStreet}.

Comments powered by Disqus