You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2009/03/26 20:47:58 UTC
svn commit: r758820 -
/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java
Author: rajith
Date: Thu Mar 26 19:47:58 2009
New Revision: 758820
URL: http://svn.apache.org/viewvc?rev=758820&view=rev
Log:
This is a simple fix for the problem highlighted in QPID-1777
Modified:
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java
Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java?rev=758820&r1=758819&r2=758820&view=diff
==============================================================================
--- qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java (original)
+++ qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java Thu Mar 26 19:47:58 2009
@@ -126,7 +126,7 @@
if (key.startsWith(CONNECTION_FACTORY_PREFIX))
{
String jndiName = key.substring(CONNECTION_FACTORY_PREFIX.length());
- ConnectionFactory cf = createFactory(entry.getValue().toString());
+ ConnectionFactory cf = createFactory(entry.getValue().toString().trim());
if (cf != null)
{
data.put(jndiName, cf);
@@ -144,7 +144,7 @@
if (key.startsWith(DESTINATION_PREFIX))
{
String jndiName = key.substring(DESTINATION_PREFIX.length());
- Destination dest = createDestination(entry.getValue().toString());
+ Destination dest = createDestination(entry.getValue().toString().trim());
if (dest != null)
{
data.put(jndiName, dest);
@@ -162,7 +162,7 @@
if (key.startsWith(QUEUE_PREFIX))
{
String jndiName = key.substring(QUEUE_PREFIX.length());
- Queue q = createQueue(entry.getValue().toString());
+ Queue q = createQueue(entry.getValue().toString().trim());
if (q != null)
{
data.put(jndiName, q);
@@ -180,7 +180,7 @@
if (key.startsWith(TOPIC_PREFIX))
{
String jndiName = key.substring(TOPIC_PREFIX.length());
- Topic t = createTopic(entry.getValue().toString());
+ Topic t = createTopic(entry.getValue().toString().trim());
if (t != null)
{
if (_logger.isDebugEnabled())
@@ -283,7 +283,7 @@
int i = 0;
for (String key:keys)
{
- bindings[i] = new AMQShortString(key);
+ bindings[i] = new AMQShortString(key.trim());
i++;
}
// The Destination has a dual nature. If this was used for a producer the key is used
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org