summaryrefslogtreecommitdiff
path: root/java/client/example/src
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-04-16 18:39:33 +0000
committerJonathan Robie <jonathan@apache.org>2010-04-16 18:39:33 +0000
commitb6d073ef81e8fef3dd1319136ec3bb12c4da73fc (patch)
treef2d3864ac1a4152c7107507d08ecf1f97441d78c /java/client/example/src
parentd7bf11f4fdb6f5223ed39c3e59c76da9afa7e505 (diff)
downloadqpid-python-b6d073ef81e8fef3dd1319136ec3bb12c4da73fc.tar.gz
Removed two superfluous comments, added parameters to createSession()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935037 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.java7
1 files changed, 2 insertions, 5 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 4eac17f380..1cc46a8cef 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
@@ -25,9 +25,7 @@ import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Properties;
-/**
- * Message producer example, sends message to a queue.
- */
+
public class Hello {
private static final String CLASS = "Hello";
@@ -42,7 +40,6 @@ public class Hello {
private void runTest() {
try {
- // Create JNDI context
Properties properties = new Properties();
properties.load(this.getClass().getResourceAsStream("hello.properties"));
Context context = new InitialContext(properties);
@@ -55,7 +52,7 @@ public class Hello {
}
});
- Session session = connection.createSession();
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination destination = (Destination) context.lookup("topicExchange");
MessageProducer messageProducer = session.createProducer(destination);