diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-16 19:48:27 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-04-16 19:48:27 +0000 |
| commit | 429c42520051f609afce836fb462a05ee8eb909d (patch) | |
| tree | dc4ff813d00d5a06a2d165bb8f33cb68162864f7 /qpid/java/client/example | |
| parent | 4bd14c765ab28a92e81271b69defbb0f163ff8c5 (diff) | |
| download | qpid-python-429c42520051f609afce836fb462a05ee8eb909d.tar.gz | |
Fixed a minor compile issue and changed the prop file to denote the syntax as "addressing" instead of binding URL
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@935061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/example')
2 files changed, 3 insertions, 3 deletions
diff --git a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java index ef8d4725fe..3de1bd2a61 100644 --- a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java +++ b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java @@ -57,10 +57,10 @@ public class Hello { MessageProducer messageProducer = session.createProducer(destination); MessageConsumer messageConsumer = session.createConsumer(destination); - Message message = session.createTextMessage("Hello world!"); + TextMessage message = session.createTextMessage("Hello world!"); messageProducer.send(message); - message = messageConsumer.receive(); + message = (TextMessage)messageConsumer.receive(); System.out.println(message.getText()); connection.close(); diff --git a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties index 839439ae4a..27ea66b318 100644 --- a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties +++ b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties @@ -23,5 +23,5 @@ java.naming.factory.initial = org.apache.qpid.jndi.PropertiesFileInitialContextF connectionfactory.qpidConnectionfactory = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672' # Register an AMQP destination in JNDI -# destination.[jniName] = [BindingURL] +# destination.[jniName] = [Address Format] destination.topicExchange = amq.topic |
