Package org.apache.ws.notification.topics

Examples of org.apache.ws.notification.topics.Topic.publish()


            XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
            ManagementEventDocument mgmtEvent = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType managementEvent = mgmtEvent.getManagementEvent();
            XmlBeanUtils.addChildElement(managementEvent, notifDocument);

            topic.publish(mgmtEvent);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here


                RelationshipCreatedNotificationDocument relationshipCreatedDoc = RelationshipCreatedNotificationDocument.Factory.newInstance();
                org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipCreatedNotificationDocument.RelationshipCreatedNotification relationshipCreatedNotification = relationshipCreatedDoc.addNewRelationshipCreatedNotification();
                relationshipCreatedNotification.setRelationship(((RelationshipDocumentImpl)o).getRelationship());
                xme.setAny(new Object[]{relationshipCreatedDoc});
                //publish!
                createdTopic.publish(xme.getXmlObject());
            }
            catch (Exception e)
            {
                LOG.debug("Unable to throw RelationshipCreated notification. Cause:" + e.getLocalizedMessage(), e);
            }
View Full Code Here

                RelationshipDeletedNotificationDocument relationshipDeletedDoc = RelationshipDeletedNotificationDocument.Factory.newInstance();
                org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDeletedNotificationDocument.RelationshipDeletedNotification relationshipDeletedNotification = relationshipDeletedDoc.addNewRelationshipDeletedNotification();
                relationshipDeletedNotification.setRelationship(((RelationshipDocumentImpl)copiedRelationship).getRelationship());
                xme.setAny(new Object[]{relationshipDeletedDoc});
                //publish!
                deletedTopic.publish(xme.getXmlObject());
            }
            catch (Exception e)
            {
                LOG.debug("Unable to throw RelationshipDeleted notification. Cause:" + e.getLocalizedMessage(), e);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.