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 | eb56a638b2aea7e56c55e49b267cfe2f673afe51 (patch) | |
tree | 913234e9d8d3f555717edd39c527866d61c2cc1e /java/client/example/src | |
parent | db58758cc506b769f8c12f8b47608bf6550b5ca6 (diff) | |
download | qpid-python-eb56a638b2aea7e56c55e49b267cfe2f673afe51.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/qpid@935061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/example/src')
-rw-r--r-- | java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java | 4 | ||||
-rw-r--r-- | java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java index ef8d4725fe..3de1bd2a61 100644 --- a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/Hello.java +++ b/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/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties b/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties index 839439ae4a..27ea66b318 100644 --- a/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/hello/hello.properties +++ b/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 |