Examples of EventingEpMetaExt


Examples of org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt

/*    */     {
/* 50 */       ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)ep.getAttachment(ServerEndpointMetaData.class);
/* 51 */       if (sepMetaData == null) {
/* 52 */         throw new IllegalStateException("Cannot obtain endpoint meta data");
/*    */       }
/* 54 */       EventingEpMetaExt ext = (EventingEpMetaExt)sepMetaData.getExtension("http://schemas.xmlsoap.org/ws/2004/08/eventing");
/* 55 */       if (ext != null)
/*    */       {
/* 63 */         EventingEndpointDeployment desc = new EventingEndpointDeployment(ext.getEventSourceNS(), ext.getNotificationSchema(), ext.getNotificationRootElementNS());
/* 64 */         desc.setEndpointAddress(sepMetaData.getEndpointAddress());
/* 65 */         desc.setPortName(sepMetaData.getPortName());
/*    */
/* 67 */         SubscriptionManagerFactory factory = SubscriptionManagerFactory.getInstance();
/* 68 */         SubscriptionManagerMBean manager = factory.getSubscriptionManager();
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt

/*    */     {
/* 79 */       ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)ep.getAttachment(ServerEndpointMetaData.class);
/* 80 */       if (sepMetaData == null) {
/* 81 */         throw new IllegalStateException("Cannot obtain endpoint meta data");
/*    */       }
/* 83 */       EventingEpMetaExt ext = (EventingEpMetaExt)sepMetaData.getExtension("http://schemas.xmlsoap.org/ws/2004/08/eventing");
/* 84 */       if (ext != null)
/*    */       {
/* 86 */         SubscriptionManagerFactory factory = SubscriptionManagerFactory.getInstance();
/* 87 */         SubscriptionManagerMBean manager = factory.getSubscriptionManager();
/* 88 */         manager.removeEventSource(ext.getEventSourceURI());
/*    */       }
/*    */     }
/*    */   }
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.metadata.EventingEpMetaExt

/*     */       else
/*     */       {
/* 453 */         throw new WSException("Unable to resolve eventing root element NS. No operation output found at " + wsdlInterfaceOperation.getName());
/*     */       }
/*     */
/* 456 */       EventingEpMetaExt ext = new EventingEpMetaExt("http://schemas.xmlsoap.org/ws/2004/08/eventing");
/* 457 */       ext.setEventSourceNS(eventSourceNS);
/* 458 */       ext.setNotificationSchema(notificationSchema);
/* 459 */       ext.setNotificationRootElementNS(notificationRootElementNS);
/* 460 */       sepMetaData.addExtension(ext);
/*     */     }
/*     */   }
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.