Tabnine Logo
TextMessage.setLongProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
setLongProperty
method
in
javax.jms.TextMessage

Best Java code snippets using javax.jms.TextMessage.setLongProperty (Showing top 20 results out of 315)

origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: jmdhappy/xxpay-master

  public Message createMessage(Session session) throws JMSException {
    TextMessage tm = session.createTextMessage(msg);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY, delay);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_PERIOD, 1*1000);
    tm.setLongProperty(ScheduledMessage.AMQ_SCHEDULED_REPEAT, 1);
    return tm;
  }
});
origin: stackoverflow.com

 TextMessage msg = session.createTextMessage();
msg.setText(text);
msg.setStringProperty("recipient", emailTo);
msg.setLongProperty( "_HQ_SCHED_DELIVERY", System.currentTimeMillis() + TimeUnit.MILLISECONDS.convert(value, unit) );
origin: org.jboss.windup.web.addons/windup-web-messaging-executor-impl

@Override
public Message serializeStatusUpdate(JMSContext context, Long projectId, WindupExecution execution, boolean includeReportOutput)
{
  try
  {
    String json = WindupExecutionJSONUtil.serializeToString(execution);
    TextMessage textMessage = context.createTextMessage(json);
    textMessage.setLongProperty("projectId", projectId);
    textMessage.setLongProperty("executionId", execution.getId());
    return textMessage;
  }
  catch (Exception e)
  {
    throw new RuntimeException("Failed to create status update textmessage due to: " + e.getMessage(), e);
  }
}
origin: uk.org.mygrid.resources/boca-notification-servlet

  textMessage.setStringProperty(BocaSerializationConstants.version, version);
textMessage.setLongProperty(BocaSerializationConstants.transactionId, transactionId);
if (commandId != null)
  textMessage.setLongProperty(BocaSerializationConstants.commandId, commandId);
if (commandType != null)
  textMessage.setObjectProperty(BocaSerializationConstants.commandType, commandType);
origin: org.jboss.windup.web.addons/windup-web-messaging-executor-impl

@Override
public Message serializeExecutionRequest(JMSContext context, WindupExecution execution)
{
  // Zip up the input files
  TextMessage executionRequestMessage = context.createTextMessage();
  try
  {
    executionRequestMessage.setLongProperty("projectId", execution.getProjectId());
    executionRequestMessage.setLongProperty("executionId", execution.getId());
    String json = WindupExecutionJSONUtil.serializeToString(execution);
    executionRequestMessage.setText(json);
    return executionRequestMessage;
  }
  catch (JMSException | IOException e)
  {
    throw new RuntimeException("Failed to create WindupExecution stream message!", e);
  }
}
origin: eclipse/kapua

/**
 * Send a text message to the specified topic
 * 
 * @param topic
 * @param message
 * @throws JMSException
 */
public void send(String topic, String message, KapuaConnectionContext kcc) throws JMSException {
  TextMessage textMessage = session.createTextMessage();
  Topic jmsTopic = session.createTopic(topic);
  textMessage.setStringProperty(MessageConstants.PROPERTY_BROKER_ID, kcc.getBrokerId());
  textMessage.setStringProperty(MessageConstants.PROPERTY_CLIENT_ID, kcc.getClientId());
  textMessage.setLongProperty(MessageConstants.PROPERTY_SCOPE_ID, kcc.getScopeIdAsLong());
  textMessage.setStringProperty(MessageConstants.PROPERTY_ORIGINAL_TOPIC, JmsUtil.convertMqttWildCardToJms(topic));
  textMessage.setLongProperty(MessageConstants.PROPERTY_ENQUEUED_TIMESTAMP, System.currentTimeMillis());
  textMessage.setText(message);
  textMessage.setJMSDestination(jmsTopic);
  producer.send(jmsTopic, textMessage);
}
origin: org.apache.geronimo.daytrader.modules/daytrader-ejb3

message.setBooleanProperty("twoPhase", twoPhase);
message.setText("neworder: orderID=" + orderID + " runtimeMode=EJB twoPhase=" + twoPhase);
message.setLongProperty("publishTime", System.currentTimeMillis());
origin: org.apache.geronimo.samples.daytrader.modules/daytrader-ejb3

message.setBooleanProperty("twoPhase", twoPhase);
message.setText("neworder: orderID=" + orderID + " runtimeMode=EJB twoPhase=" + twoPhase);
message.setLongProperty("publishTime", System.currentTimeMillis());
origin: org.apache.geronimo.daytrader/daytrader-ejb

message.setBooleanProperty("twoPhase", twoPhase);
message.setText("neworder: orderID=" + orderID + " runtimeMode=EJB twoPhase=" + twoPhase);
message.setLongProperty("publishTime", System.currentTimeMillis());
origin: objectweb-joramtests/joramtests

dummyMessage.setLongProperty("weight", 1000);
dummyMessage.setText("testEquals:1");
sender.send(dummyMessage);
message.setLongProperty("weight", 2500);
message.setText("testEquals:2");
sender.send(message);
origin: objectweb-joramtests/joramtests

dummyMessage.setLongProperty("weight", 2500);
dummyMessage.setText("testEquals:1");
sender.send(dummyMessage);
message.setLongProperty("weight", 1000);
message.setText("testEquals:2");
sender.send(message);
origin: apache/activemq-artemis

/**
* Test the ">" condition in message selector.
* <br />
* <ul>
* <li><code>"weight > 2500"</code> is <code>true</code> for 3000 and <code>false</code> for 1000</li>
* </ul>
*/
@Test
public void testGreaterThan() throws Exception {
 if (receiver != null) {
   receiver.close();
 }
 receiver = receiverSession.createReceiver(receiverQueue, "weight > 2500");
 TextMessage dummyMessage = senderSession.createTextMessage();
 dummyMessage.setLongProperty("weight", 1000);
 dummyMessage.setText("testGreaterThan:1");
 sender.send(dummyMessage);
 TextMessage message = senderSession.createTextMessage();
 message.setLongProperty("weight", 3000);
 message.setText("testGreaterThan:2");
 sender.send(message);
 TextMessage msg = (TextMessage) receiver.receive(TestConfig.TIMEOUT);
 Assert.assertEquals("testGreaterThan:2", msg.getText());
}
origin: apache/activemq-artemis

/**
* Test the "<>" (not equal) condition in message selector.
* <br />
* <ul>
* <li><code>"weight <> 2500"</code>  is <code>true</code> for 1000 and <code>false</code> for 2500</li>
* </ul>
*/
@Test
public void testNotEquals() throws Exception {
 if (receiver != null) {
   receiver.close();
 }
 receiver = receiverSession.createReceiver(receiverQueue, "weight <> 2500");
 TextMessage dummyMessage = senderSession.createTextMessage();
 dummyMessage.setLongProperty("weight", 2500);
 dummyMessage.setText("testEquals:1");
 sender.send(dummyMessage);
 TextMessage message = senderSession.createTextMessage();
 message.setLongProperty("weight", 1000);
 message.setText("testEquals:2");
 sender.send(message);
 TextMessage msg = (TextMessage) receiver.receive(TestConfig.TIMEOUT);
 Assert.assertEquals("testEquals:2", msg.getText());
}
origin: apache/activemq-artemis

/**
* Test the "=" condition in message selector.
* <br />
* <ul>
* <li><code>"weight = 2500"</code>  is <code>true</code> for 2500 and <code>false</code> for 1000</li>
* </ul>
*/
@Test
public void testEquals() throws Exception {
 if (receiver != null) {
   receiver.close();
 }
 receiver = receiverSession.createReceiver(receiverQueue, "weight = 2500");
 TextMessage dummyMessage = senderSession.createTextMessage();
 dummyMessage.setLongProperty("weight", 1000);
 dummyMessage.setText("testEquals:1");
 sender.send(dummyMessage);
 TextMessage message = senderSession.createTextMessage();
 message.setLongProperty("weight", 2500);
 message.setText("testEquals:2");
 sender.send(message);
 TextMessage msg = (TextMessage) receiver.receive(TestConfig.TIMEOUT);
 Assert.assertEquals("testEquals:2", msg.getText());
}
origin: apache/activemq-artemis

/**
* Test the message selector using the filter example provided by the JMS specifications.
* <br />
* <ul>
* <li><code>"JMSType = 'car' AND color = 'blue' AND weight > 2500"</code></li>
* </ul>
*/
@Test
public void testSelectorExampleFromSpecs() throws Exception {
 if (receiver != null) {
   receiver.close();
 }
 receiver = receiverSession.createReceiver(receiverQueue, "JMSType = 'car' AND color = 'blue' AND weight > 2500");
 TextMessage dummyMessage = senderSession.createTextMessage();
 dummyMessage.setJMSType("car");
 dummyMessage.setStringProperty("color", "red");
 dummyMessage.setLongProperty("weight", 3000);
 dummyMessage.setText("testSelectorExampleFromSpecs:1");
 sender.send(dummyMessage);
 TextMessage message = senderSession.createTextMessage();
 message.setJMSType("car");
 message.setStringProperty("color", "blue");
 message.setLongProperty("weight", 3000);
 message.setText("testSelectorExampleFromSpecs:2");
 sender.send(message);
 TextMessage msg = (TextMessage) receiver.receive(TestConfig.TIMEOUT);
 Assert.assertEquals("testSelectorExampleFromSpecs:2", msg.getText());
}
javax.jmsTextMessagesetLongProperty

Popular methods of TextMessage

  • getText
    Gets the string containing this message's data. The default value is null.
  • setText
    Sets the string containing this message's data.
  • setStringProperty
  • setJMSCorrelationID
  • setIntProperty
  • getStringProperty
  • setBooleanProperty
  • setJMSReplyTo
  • getJMSCorrelationID
  • getJMSMessageID
  • getJMSReplyTo
  • setDoubleProperty
  • getJMSReplyTo,
  • setDoubleProperty,
  • acknowledge,
  • setJMSType,
  • getJMSDeliveryMode,
  • setObjectProperty,
  • getIntProperty,
  • getJMSPriority,
  • clearBody

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTextField (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now