[
http://jira.jboss.com/jira/browse/JBESB-1157?page=comments#action_12382012 ]
Tom Fennelly commented on JBESB-1157:
-------------------------------------
Nope, what I said was... "instances using BytesBody.BYTES_LOCATION ...." (within
the ESB code). BytesBody.BYTES_LOCATION etc (all that stuff) will be left there for
backward compatibility.
Notifier ignores default location
---------------------------------
Key: JBESB-1157
URL:
http://jira.jboss.com/jira/browse/JBESB-1157
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.2.1 IR1
Reporter: Burr Sutter
Assigned To: Tom Fennelly
Fix For: 4.2.1 IR2
org.jboss.soa.esb.actions.Notifier.java
pulls the message content using this technique:
message.getBody().get(BytesBody.BYTES_LOCATION)
I believe it should be
message.getBody().get()
Use Case:
A message containing "STUFF" flows through the JMS Gateway, through the native
listener, into the action chain.
MyAction.java - modifies the appends " HAPPENS" to the message data using this
technique:
String origData = (String) message.getBody().get();
message.getBody().add(origData + " HAPPENS");
the next action in the chain is the Notifier:
<action name="notificationAction"
class="org.jboss.soa.esb.actions.Notifier">
<property name="okMethod" value="notifyOK"
/>
<property name="notification-details">
<NotificationList type="OK">
<target class="NotifyConsole" />
</NotificationList>
</property>
</action>
which displays "STUFF", just the original inbound data, not that message that
was modified by the actions above it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira