Skip to content

Commit

Permalink
SWITCHYARD-1089 Add quickstart which demonstrates dynamic OperationSe…
Browse files Browse the repository at this point in the history
…lector(XPath, Regex, Java)

Added operationSelector.xpath to jca-inflow-hornetq quickstart
  • Loading branch information
igarashitm committed Oct 9, 2012
1 parent 7db57c8 commit 9905fb4
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -20,9 +20,9 @@

import java.io.IOException;

import javax.jms.BytesMessage;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
Expand All @@ -36,7 +36,7 @@
@RunWith(Arquillian.class)
public class JCAInflowHornetQQuickstartTest {

private static final String QUEUE = "GreetingServiceQueue";
private static final String QUEUE = "JCAInflowGreetingServiceQueue";
private static final String USER = "guest";
private static final String PASSWD = "guestp";

Expand All @@ -57,8 +57,8 @@ public void testDeployment() throws Exception {
try {
Session session = hqMixIn.getJMSSession();
MessageProducer producer = session.createProducer(HornetQMixIn.getJMSQueue(QUEUE));
BytesMessage message = session.createBytesMessage();
message.writeBytes("Awoniyoshi".getBytes());
TextMessage message = session.createTextMessage();
message.setText(PAYLOAD);
producer.send(message);
Thread.sleep(1000);
} finally {
Expand All @@ -67,4 +67,10 @@ public void testDeployment() throws Exception {
}
}

private static final String PAYLOAD = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<qs:person xmlns:qs=\"urn:switchyard-quickstart:jca-inflow-hornetq:0.1.0\">\n"
+ " <name>Fernando</name>\n"
+ " <language>spanish</language>\n"
+ "</qs:person>\n";

}

0 comments on commit 9905fb4

Please sign in to comment.