Examples of Message


Examples of org.jboss.messaging.core.message.Message

            return null;
         }
        
         if (trace) { log.trace(this + " has startStopLock lock, preparing the message for delivery"); }

         Message message = ref.getMessage();

         boolean selectorRejected = !this.accept(message);

         SimpleDelivery delivery = new SimpleDelivery(observer, ref,
                  !storeDeliveries, !selectorRejected);
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.core.transport.Message

    String aString = "Hello from Java Land";
    Receiver endpoint = proxy.createReceiver(1, null);
    serviceFactory.send(endpoint.getReplyTo(), (short) 0, 0,
        aString.getBytes(), aString.getBytes().length, 0, 0, 0,
        "X_OCTET", "");
    Message receive = endpoint.receive(0);

    assertNotNull(receive);
    String string = new String(receive.data).intern();
    String expectedResponse = "BAR SAYS HELLO";
    log.debug("Bar ServiceManager service_request response is " + string);
View Full Code Here

Examples of org.jboss.seam.solder.messages.Message

        super(messageLogger.projectCode());
        logger = Logger.getLogger(category);
    }

    public Object invoke(final Object proxy, final Method method, Object[] args) throws Throwable {
        final Message message = method.getAnnotation(Message.class);
        if (message == null) {
            // nothing to do...
            return null;
        }
        final Annotation[][] parameterAnnotations = method.getParameterAnnotations();
        final Log logMessage = method.getAnnotation(Log.class);
        if (logMessage != null) {

            try {
                // See if it's a basic logger method
                if (method.getDeclaringClass().equals(BasicLogger.class)) {
                    // doesn't cover overrides though!
                    return method.invoke(logger, args);
                }

                // it's a log message
                final Logger.Level level = logMessage.level();
                if (logger.isEnabled(level)) {
                    String formatString = getFormatString(message);
                    if (formatString == null) {
                        return null;
                    }
                    ArrayList<Object> newArgs = new ArrayList<Object>();
                    Throwable cause = extractCause(parameterAnnotations, args, newArgs);
                    final Message.Format format = message.format();
                    switch (format) {
                        case PRINTF: {
                            logger.logf(level, cause, formatString, newArgs.toArray());
                            return null;
                        }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.jbws1427.services.Message

      factory.parse(wsdlFile.toURL());
   }

   public final void testEndpointAccess() throws Exception
   {
      Message inObj = new Message("Kermit", new Integer(100));
      Message retObj = port.processClaim(inObj);
      assertEquals(inObj, retObj);
   }
View Full Code Here

Examples of org.jbpm.Message

      public void run() {
            session2.fireUntilHalt();        
      }
        }).start();
   
        session2.insert(new Message());
        assertEquals(0, myList.size());
        assertEquals(0, ((InternalProcessRuntime) ((InternalWorkingMemory) session2).getProcessRuntime()).getTimerManager().getTimers().size());
       
        session2.halt();
  }
View Full Code Here

Examples of org.jbpm.bpmn2.core.Message

                Map<String, Message> messages = (Map<String, Message>)
                    ((ProcessBuildData) parser.getData()).getMetaData("Messages");
                if (messages == null) {
                    throw new IllegalArgumentException("No messages found");
                }
                Message message = messages.get(messageRef);
                if (message == null) {
                    throw new IllegalArgumentException("Could not find message " + messageRef);
                }
                String variable = (String) actionNode.getMetaData("MappingVariable");
                actionNode.setMetaData("MessageType", message.getType());
                actionNode.setAction(new DroolsConsequenceAction("java",
                    "org.drools.process.instance.impl.WorkItemImpl workItem = new org.drools.process.instance.impl.WorkItemImpl();" + EOL +
                    "workItem.setName(\"Send Task\");" + EOL +
                    "workItem.setParameter(\"MessageType\", \"" + message.getType() + "\");" + EOL +
                    (variable == null ? "" : "workItem.setParameter(\"Message\", " + variable + ");" + EOL) +
                    "((org.drools.process.instance.WorkItemManager) kcontext.getKnowledgeRuntime().getWorkItemManager()).internalExecuteWorkItem(workItem);"));
            }
            xmlNode = xmlNode.getNextSibling();
        }
View Full Code Here

Examples of org.jbpm.env.session.Message

  // asynchronous continuations //////////////////////////////////////////////// 

  public void sendContinuationMessage(AtomicOperation operation) {
    Environment environment = Environment.getCurrent();
    MessageSession messageSession = environment.get(MessageSession.class);
    Message asyncMessage = operation.createAsyncMessage(this);
    lock("async continuation message "+asyncMessage);
    messageSession.send(asyncMessage);
  }
View Full Code Here

Examples of org.jbpm.msg.Message

        Action action = (Action) iter.next();
        if ( action.acceptsPropagatedEvents()
             || (!isPropagated)
           ) {
          if (action.isAsync()) {
            Message continuationMsg = new ExecuteActionCommand(action, executionContext.getToken());
            MessageService messageService = (MessageService) Services.getCurrentService(Services.SERVICENAME_MESSAGE);
            messageService.send(continuationMsg);
          } else {
            executeAction(action, executionContext);
          }
View Full Code Here

Examples of org.jclouds.openstack.marconi.v1.domain.Message

   @Test(dependsOnMethods = { "listMessagesByIds" })
   public void getMessage() throws Exception {
      for (String zoneId : zones) {
         MessageApi messageApi = api.getMessageApiForZoneAndClientAndQueue(zoneId, CLIENT_ID, "jclouds-test");

         Message message = messageApi.get(getLast(messageIds.get(zoneId)));

         assertNotNull(message.getId());
         assertNotNull(message.getBody());
      }
   }
View Full Code Here

Examples of org.jclouds.sqs.domain.Message

   }

   protected void assertNoMessages(final URI queue) {
      assertEventually(new Runnable() {
         public void run() {
            Message message = api.getMessageApiForQueue(queue).receive();
            assertNull(message, "message: " + message + " left in queue " + queue);
         }
      });
   }
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.