Here are the examples of the java api class org.apache.activemq.artemis.jms.tests.message.SimpleJMSTextMessage taken from open source projects.
1. ForeignMessageTest#testForeignMessageSetDestination()
Project: activemq-artemis
File: ForeignMessageTest.java
File: ForeignMessageTest.java
@Test public void testForeignMessageSetDestination() throws Exception { // create a Bytes foreign message SimpleJMSTextMessage txt = new SimpleJMSTextMessage("hello from Brazil!"); txt.setJMSDestination(null); queueProd.send(txt); ProxyAssertSupport.assertNotNull(txt.getJMSDestination()); TextMessage tm = (TextMessage) queueCons.receive(); ProxyAssertSupport.assertNotNull(tm); ProxyAssertSupport.assertEquals("hello from Brazil!", txt.getText()); }
2. ForeignTextMessageTest#createForeignMessage()
Project: activemq-artemis
File: ForeignTextMessageTest.java
File: ForeignTextMessageTest.java
@Override protected Message createForeignMessage() throws Exception { SimpleJMSTextMessage m = new SimpleJMSTextMessage(); m.setText("this is the payload"); return m; }