Examples of receiveEvent()


Examples of de.danet.an.workflow.omgcore.WfAuditHandler.receiveEvent()

           + " with processKey="
           + msg.getStringProperty("processKey")
           + " and eventType="
           + msg.getStringProperty("eventType"));
        }
        handler.receiveEvent((WfAuditEvent)e);
          } catch (JMSException ex) {
        logger.error (ex.getMessage (), ex);
          } catch (InvalidPerformerException ex) {
        // deliberatly ignored.
          } catch (RemoteException ex) {
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.streaming.GWTStreamingClientConnector.receiveEvent()

        theGWTStreamingClientConnector.init(myEventService);
        theGWTStreamingClientConnector.listen(theDummyEventNotification, new DummyListenAsyncCallback());

        assertEquals(0, theDummyEventNotification.getOccurredDomainEvents().size());

        theGWTStreamingClientConnector.receiveEvent("[0,3,2,1,[\"de.novanic.eventservice.client.event.DefaultDomainEvent/3924906731\",\"de.novanic.eventservice.client.event.domain.DefaultDomain/240262385\",\"test_domain\"],0," + ClientSerializationStreamReader.SERIALIZATION_STREAM_VERSION + "]");
        theGWTStreamingClientConnector.listen(theDummyEventNotification, new DummyListenAsyncCallback());

        assertEquals(1, theDummyEventNotification.getOccurredDomainEvents().size());
        assertNotNull(theDummyEventNotification.getOccurredDomainEvents().get(0));
        assertNotNull(theDummyEventNotification.getOccurredDomainEvents().get(0).getDomain());
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.streaming.GWTStreamingClientConnector.receiveEvent()

        theGWTStreamingClientConnector.listen(theDummyEventNotification, new DummyListenAsyncCallback());

        assertEquals(0, theDummyEventNotification.getOccurredDomainEvents().size());

        try {
            theGWTStreamingClientConnector.receiveEvent("[4,3,2,1,[\"de.novanic.eventservice.client.event.DefaultDomainEvent/3924906731\",\"de.novanic.eventservice.client.event.domain.DefaultDomain/240262385\",\"test_domain\",\"does.not.exist.DummyEventWithoutPackage\"],0," + ClientSerializationStreamReader.SERIALIZATION_STREAM_VERSION + "]");
            fail("Exception expected, because the event can not be de-serialized / instantiated!");
        } catch(RemoteEventServiceRuntimeException e) {
            assertTrue(e.getCause() instanceof SerializationException);
        }
    }
View Full Code Here

Examples of org.jasig.portal.IChannel.receiveEvent()

   
    IChannel cError = new CError(ErrorCode.GENERAL_ERROR, new Throwable(), "bogusSusbscribeId", irc);
   
    assertTrue(irc.getEventsReceived().isEmpty());

    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

Examples of org.jasig.portal.IChannel.receiveEvent()

    IChannel cSecureInfo = new CSecureInfo("bugusSubId", irc);
   
     
    assertTrue(irc.getEventsReceived().isEmpty());

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

Examples of org.jasig.portal.IChannel.receiveEvent()

    IChannel cSecureInfo = new CSecureInfo("bugusSubId", irc);
   
     
    assertTrue(irc.getEventsReceived().isEmpty());

    cSecureInfo.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

Examples of org.jasig.portal.IChannel.receiveEvent()

   
    IChannel cError = new CError(ErrorCode.GENERAL_ERROR, new Throwable(), "bogusSusbscribeId", irc);
   
    assertTrue(irc.getEventsReceived().isEmpty());

    cError.receiveEvent(PortalEvent.SESSION_DONE_EVENT);
   
    List eventsReceived = irc.getEventsReceived();
    assertFalse(eventsReceived.isEmpty());
    PortalEvent event = (PortalEvent) irc.getEventsReceived().get(0);
    assertEquals(PortalEvent.SESSION_DONE, event.getEventNumber());
View Full Code Here

Examples of org.ofbiz.service.GenericServiceCallback.receiveEvent()

        if (callbacks != null) {
            Iterator<GenericServiceCallback> i = callbacks.iterator();
            while (i.hasNext()) {
                GenericServiceCallback gsc = i.next();
                if (gsc.isEnabled()) {
                    gsc.receiveEvent(context);
                } else {
                    i.remove();
                }
            }
        }
View Full Code Here

Examples of org.ofbiz.service.GenericServiceCallback.receiveEvent()

        if (callbacks != null) {
            Iterator<GenericServiceCallback> i = callbacks.iterator();
            while (i.hasNext()) {
                GenericServiceCallback gsc = i.next();
                if (gsc.isEnabled()) {
                    gsc.receiveEvent(context,t );
                } else {
                    i.remove();
                }
            }
        }
View Full Code Here

Examples of org.ofbiz.service.GenericServiceCallback.receiveEvent()

        if (callbacks != null) {
            Iterator<GenericServiceCallback> i = callbacks.iterator();
            while (i.hasNext()) {
                GenericServiceCallback gsc = i.next();
                if (gsc.isEnabled()) {
                    gsc.receiveEvent(context, result);
                } else {
                    i.remove();
                }
            }
        }
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.