activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r533076 - /activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/
Date Fri, 27 Apr 2007 12:27:35 GMT
Author: jstrachan
Date: Fri Apr 27 05:27:34 2007
New Revision: 533076

URL: http://svn.apache.org/viewvc?view=rev&rev=533076
Log:
some minor refactoring to fix some typos

Added:
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
  (contents, props changed)
      - copied, changed from r533021, activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAcessException.java
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
  (contents, props changed)
      - copied, changed from r533021, activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAcessException.java
Removed:
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAcessException.java
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAcessException.java
Modified:
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsEndpoint.java
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
    activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/package.html

Modified: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsEndpoint.java?view=diff&rev=533076&r1=533075&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsEndpoint.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsEndpoint.java
Fri Apr 27 05:27:34 2007
@@ -133,7 +133,7 @@
     }
 
 	public boolean isSingleton() {
-		return true;
+		return false;
 	}
 
 }

Modified: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java?view=diff&rev=533076&r1=533075&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessage.java
Fri Apr 27 05:27:34 2007
@@ -74,7 +74,7 @@
                 answer = jmsMessage.getObjectProperty(name);
             }
             catch (JMSException e) {
-                throw new MessagePropertyAcessException(name, e);
+                throw new MessagePropertyAccessException(name, e);
             }
         }
         if (answer == null) {
@@ -104,7 +104,7 @@
                 names = jmsMessage.getPropertyNames();
             }
             catch (JMSException e) {
-                throw new MessagePropertyNamesAcessException(e);
+                throw new MessagePropertyNamesAccessException(e);
             }
             while (names.hasMoreElements()) {
                 String name = names.nextElement().toString();
@@ -113,7 +113,7 @@
                     map.put(name, value);
                 }
                 catch (JMSException e) {
-                    throw new MessagePropertyAcessException(name, e);
+                    throw new MessagePropertyAccessException(name, e);
                 }
             }
         }

Modified: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java?view=diff&rev=533076&r1=533075&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
Fri Apr 27 05:27:34 2007
@@ -42,12 +42,6 @@
         this.template = template;
     }
 
-    public void onExchange(Exchange exchange) {
-        // lets convert to the type of an exchange
-        JmsExchange jmsExchange = endpoint.convertTo(JmsExchange.class, exchange);
-        process(jmsExchange);
-    }
-
     public void process(final JmsExchange exchange) {
         template.send(endpoint.getDestination(), new MessageCreator() {
             public Message createMessage(Session session) throws JMSException {

Copied: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
(from r533021, activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAcessException.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java?view=diff&rev=533076&p1=activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAcessException.java&r1=533021&p2=activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAcessException.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
Fri Apr 27 05:27:34 2007
@@ -21,11 +21,11 @@
 /**
  * @version $Revision:520964 $
  */
-public class MessagePropertyAcessException extends RuntimeJmsException {
+public class MessagePropertyAccessException extends RuntimeJmsException {
     private static final long serialVersionUID = -3996286386119163309L;
     private String propertyName;
 
-    public MessagePropertyAcessException(String propertyName, JMSException e) {
+    public MessagePropertyAccessException(String propertyName, JMSException e) {
         super("Error accessing header: " + propertyName, e);
         this.propertyName = propertyName;
     }

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyAccessException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
(from r533021, activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAcessException.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java?view=diff&rev=533076&p1=activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAcessException.java&r1=533021&p2=activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAcessException.java
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
Fri Apr 27 05:27:34 2007
@@ -21,10 +21,10 @@
 /**
  * @version $Revision:520964 $
  */
-public class MessagePropertyNamesAcessException extends RuntimeJmsException {
+public class MessagePropertyNamesAccessException extends RuntimeJmsException {
     private static final long serialVersionUID = -6744171518099741324L;
 
-    public MessagePropertyNamesAcessException(JMSException e) {
+    public MessagePropertyNamesAccessException(JMSException e) {
         super("Failed to acess the JMS message property names", e);
     }
 }

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/MessagePropertyNamesAccessException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/package.html
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/package.html?view=diff&rev=533076&r1=533075&r2=533076
==============================================================================
--- activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/package.html
(original)
+++ activemq/camel/trunk/camel-jms/src/main/java/org/apache/camel/component/jms/package.html
Fri Apr 27 05:27:34 2007
@@ -19,7 +19,7 @@
 </head>
 <body>
 
-Defines the JMS transport 
+Defines the <a href="http://activemq.apache.org/camel/jms.html">JMS Component</a>
 
 </body>
 </html>



Mime
View raw message