ActiveMQ不接收具有blob属性的实体

时间:2018-10-04 04:13:56

标签: java spring-boot activemq

我正在尝试使用ActiveMQ在Spring Boot应用程序中进行排队。以下是我的实体:

public class AuditLogModel implements Serializable{

@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private long logId;
private String description;
private Mode mode;
private String enitityKeyValue;
@Transient
private String oldValue;
@Transient
private String newValue;
@Lob
private Blob oldData;
@Lob
private Blob newData;
private Date accessTime;
private String userId;
private String entityType;
}

如您所见,我的实体中有两个Blob类型的属性。

我还具有以下JMS侦听器:

@JmsListener(destination = queue)
public void receiveMessage(final AuditLogModel jsonMessage) throws JMSException {
    auditLogModelService.save(jsonMessage);
}

问题在于,即使没有为这些属性设置任何数据,我的侦听器也不会接收到添加到队列中的任何数据。但是,如果我从实体中删除Blob类型的属性,则侦听器可以正常工作。

我的代码可能出什么问题了?

0 个答案:

没有答案