Examples of InvocationRequest


Examples of org.jboss.remoting.InvocationRequest

      InternalInvocation ii = new InternalInvocation(InternalInvocation.HANDLECALLBACK,
                                                     new Object[]{callback});

      OnewayInvocation oi = new OnewayInvocation(ii);

      return new InvocationRequest(null, CallbackManager.JMS_CALLBACK_SUBSYSTEM, oi,
                                   ONE_WAY_METADATA, null, null);
   }
View Full Code Here

Examples of org.jboss.remoting.InvocationRequest

      {
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
        
         OutputStream oos = new DataOutputStream(bos);
        
         InvocationRequest ir = new InvocationRequest("session123", null, req, null, null, null);  
        
         wf.write(ir, oos);
                 
         byte[] bytes = bos.toByteArray();
        
View Full Code Here

Examples of org.jboss.remoting.InvocationRequest

public class HttpMarshaller extends HTTPMarshaller {

    public void write(Object object, OutputStream outputStream, int version) throws IOException {
        if(object instanceof InvocationResponse) {
            Object result = ((InvocationResponse)object).getResult();
            InvocationRequest currentRequest = JBossRemotingGatewayListener.getCurrentRequest();
            boolean sendJavaResponse = false;

            if(result != null && currentRequest != null) {
                Map requestMetadata = currentRequest.getRequestPayload();
                Map responseMetadata = currentRequest.getReturnPayload();
                String userAgent = (String) requestMetadata.get(HTTPMetadataConstants.REMOTING_USER_AGENT);

                sendJavaResponse = JBossRemotingUtil.sendJavaObjectPayload(responseMetadata, userAgent);
            }
           
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.