使用Spring将主题上发送的JMS消息保存到Gemfire中

时间:2014-12-18 15:32:35

标签: spring jms jms-topic gemfire

我在Topic上收到JMS消息的问题,我需要将消息结构保存到GemFire(经典)区域MessageStructInfo中。

消息的结构中包含数据 的< messagenotification> < fieldidentifierEndDate =" 2014年12月24日" fieldidentifierStartDate =" 2014-12-07"文件名=" filenotification.xml"目录=" ../ filehostdirectory" /> < / messagenotification>

我需要从消息中提取字段数据并持久保存到GemFire区域 MessageStructInfo fieldidentifierStartDate,
  fieldidentifierEndDate,   文件名,   目录,   状态 - 附加(已接收,已处理,已完成)

我需要这个帮助。

由于 仙人

1 个答案:

答案 0 :(得分:-1)

您可以创建类的对象,例如Message(实现com.gemstone.gemfire.DataSerializable接口),并填充从JMS消息中提取的字段并将对象存储在该区域中。你可以存储。希望这会有所帮助。

相关问题