[
https://issues.apache.org/jira/browse/AMQ-8464?focusedWorklogId=998527&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-998527
]
ASF GitHub Bot logged work on AMQ-8464:
---------------------------------------
Author: ASF GitHub Bot
Created on: 03/Jan/26 07:52
Start Date: 03/Jan/26 07:52
Worklog Time Spent: 10m
Work Description: jbonofre commented on code in PR #1543:
URL: https://github.com/apache/activemq/pull/1543#discussion_r2658787087
##########
activemq-client/src/main/java/org/apache/activemq/ActiveMQConsumer.java:
##########
@@ -100,17 +100,44 @@ public void close() {
@Override
public <T> T receiveBody(Class<T> c) {
- throw new UnsupportedOperationException("receiveBody(Class<T>) is not
supported");
+ Message message = receive();
+ if (message == null) {
+ return null;
+ }
+ try {
+ Object body = message.getBody(c);
+ return c.cast(body);
+ } catch (JMSException e) {
Review Comment:
@tabish121 I started the implementation of the body receive failure logic.
Issue Time Tracking
-------------------
Worklog Id: (was: 998527)
Time Spent: 3h (was: 2h 50m)
> Implement JMS 2.0 Consumer receiveBody
> --------------------------------------
>
> Key: AMQ-8464
> URL: https://issues.apache.org/jira/browse/AMQ-8464
> Project: ActiveMQ
> Issue Type: New Feature
> Reporter: Matt Pavlovich
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Labels: #jms2
> Fix For: 6.3.0
>
> Time Spent: 3h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact