Examples of onMessage()


Examples of org.apache.openejb.server.axis2.pojo.PojoWsContainer.onMessage()

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Axis2Response res = new Axis2Response("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, out);
       
        PojoWsContainer container = new PojoWsContainer(port, HelloWorld.class, null, "/axis2");
        container.start();
        container.onMessage(req, res);
        out.flush();

    }

    private void invokeWithWSDL(String serviceName, String endPointClassName, String wsdl, String requestFile ) throws Exception {
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener.onMessage()

            if (pojo != null) {
                req.setAttribute(WsConstants.POJO_INSTANCE, pojo);
            }

            try {
                service.onMessage(httpRequest, httpResponse);
            } catch (IOException e) {
                throw e;
            } catch (ServletException e) {
                throw e;
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.openejb.webadmin.HttpObject.onMessage()

            }
            return;
        }

        try {
            httpObject.onMessage(req, res);
        } catch (Throwable t) {
            //TODO: log or something
            //t.printStackTrace();
            res =
                HttpResponseImpl.createError(
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.provider.DefaultJMSBindingListener.onMessage()

        EasyMock.replay(service);
        EasyMock.replay(requestJMSMsg);
        EasyMock.replay(runtimeWire);

        // Do the test
        bindingListener.onMessage(requestJMSMsg);

        // Verify our Mock objects
        // EasyMock.verify(iface);
        // EasyMock.verify(ifaceContract);
        // EasyMock.verify(service);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.provider.JMSBindingListener.onMessage()

        EasyMock.replay(service);
        EasyMock.replay(requestJMSMsg);
        EasyMock.replay(runtimeWire);

        // Do the test
        bindingListener.onMessage(requestJMSMsg);

        // Verify our Mock objects
        // EasyMock.verify(iface);
        // EasyMock.verify(ifaceContract);
        // EasyMock.verify(service);
View Full Code Here

Examples of org.atmosphere.socketio.SocketIOSession.onMessage()

            }

            if (messages != null && !messages.isEmpty()) {
                SocketIOSession session = sessionWrapper.getSession();
                for (SocketIOPacketImpl msg : messages) {
                    session.onMessage(session.getAtmosphereResourceImpl(), session.getTransportHandler(), msg.getData());
                }
            }

        }
    }
View Full Code Here

Examples of org.cometd.bayeux.client.ClientSessionChannel.MessageListener.onMessage()

    private void reconnect() {
        final ArgumentCaptor<MessageListener> listenerCaptor = ArgumentCaptor.forClass(MessageListener.class);
        verify(metaHandshakeChannel).addListener(listenerCaptor.capture());
        MessageListener reconnectListener = listenerCaptor.getValue();
        reconnectListener.onMessage(metaHandshakeChannel, Mockito.mock(Message.class));
    }

    private Message mockSubscribeMessge(String channelID, boolean successful) {
        Message message = mock(Message.class);
        when(message.get(Message.SUBSCRIPTION_FIELD)).thenReturn(channelID);
View Full Code Here

Examples of org.dcm4che3.net.hl7.HL7MessageListener.onMessage()

        if (listener == null) {
            listener = listeners.get("*");
            if (listener == null)
                return super.onMessage(hl7App, conn, s, msh, msg, off, len, mshlen);
        }
        return  listener.onMessage(hl7App, conn, s, msh, msg, off, len, mshlen);
    }
}
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.coordination.jms.JMSTopicRemoteConnection.onMessage()

        RemoteCommandManager rcm = (RemoteCommandManager)session.getCommandManager();
        if(rcm.isStopped()){
            throw RemoteCommandManagerException.remoteCommandManagerIsClosed();
        }
        JMSTopicRemoteConnection connection = (JMSTopicRemoteConnection)rcm.getTransportManager().getConnectionToLocalHost();
        connection.onMessage(message);
    }
   
}
View Full Code Here

Examples of org.hornetq.api.core.client.MessageHandler.onMessage()

               });

               onMessageThread = Thread.currentThread();
               try
               {
                  theHandler.onMessage(message);
               }
               finally
               {
                  try
                  {
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.