[esb-issues] [JBoss JIRA] Commented: (JBESB-1357) Deprecated hint in javadoc for org.jboss.soa.esb.message.Body.getByteArray doesn't work
jarkko Lietolahti (JIRA)
jira-events at lists.jboss.org
Thu Nov 22 18:26:18 EST 2007
[ http://jira.jboss.com/jira/browse/JBESB-1357?page=comments#action_12388844 ]
jarkko Lietolahti commented on JBESB-1357:
------------------------------------------
This is the current trunk of trunk/product/tools/esbwizard/template/src/org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.java
package org.jboss.soa.esb.samples.quickstart.helloworld;
import org.jboss.soa.esb.actions.AbstractActionLifecycle;
import org.jboss.soa.esb.helpers.ConfigTree;
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.body.content.BytesBody;
public class MyJMSListenerAction extends AbstractActionLifecycle
{
protected ConfigTree _config;
public MyJMSListenerAction(ConfigTree config) { _config = config; }
public Message displayMessage(Message message) throws Exception{
System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
System.out.println("Body: " + new String(message.getBody().get(BytesBody.BYTES_LOCATION)));
System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
return message;
}
}
> Deprecated hint in javadoc for org.jboss.soa.esb.message.Body.getByteArray doesn't work
> ---------------------------------------------------------------------------------------
>
> Key: JBESB-1357
> URL: http://jira.jboss.com/jira/browse/JBESB-1357
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Documentation
> Affects Versions: 4.2.1
> Reporter: jarkko Lietolahti
> Assigned To: Mark Little
> Priority: Minor
> Fix For: 4.2.1 CP1
>
>
> Javadoc for Body.getByteArray says:" Deprecated. As of 4.2 this has been replaced by get(BytesBody.BYTES_LOCATION) "
> But this doesn't work. BytesBody.BYTES_LOCATION is also deprecated without a proper hint where to go next!
> Following the javadoc and calling System.out.println("Body: " + message.getBody().get(BytesBody.BYTES_LOCATION)); in HelloWorld ( from Eclipse ESB create project )
> shows "[STDOUT] Body: null
--
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
More information about the esb-issues
mailing list