/** * Create an instance of {@link NotificationMessageHolderType } * */ public NotificationMessageHolderType createNotificationMessageHolderType() { return new NotificationMessageHolderType(); }
/** * Create an instance of {@link NotificationMessageHolderType } * */ public NotificationMessageHolderType createNotificationMessageHolderType() { return new NotificationMessageHolderType(); }
/** * Create an instance of {@link NotificationMessageHolderType } * */ public NotificationMessageHolderType createNotificationMessageHolderType() { return new NotificationMessageHolderType(); }
public void notify(Referencable publisher, String topic, Object msg) { getBroker(); if (this.context != null) { try { DOMResult result = new DOMResult(); context.createMarshaller().marshal(msg, result); msg = result.getNode(); if (msg instanceof Document) { msg = ((Document)msg).getDocumentElement(); } } catch (JAXBException e) { //ignore, we'll try and let the runtime handle it as is } } Notify notify = new Notify(); NotificationMessageHolderType holder = new NotificationMessageHolderType(); if (publisher != null) { holder.setProducerReference(publisher.getEpr()); } if (topic != null) { TopicExpressionType topicExp = new TopicExpressionType(); topicExp.getContent().add(topic); holder.setTopic(topicExp); } holder.setMessage(new NotificationMessageHolderType.Message()); holder.getMessage().setAny(msg); notify.getNotificationMessage().add(holder); getBroker().notify(notify); }
Notify notify = new Notify(); NotificationMessageHolderType notificationMessage = new NotificationMessageHolderType();
NotificationMessageHolderType msg = new NotificationMessageHolderType();