org.apache.camel.jms
Class JmsComponent

java.lang.Object
  extended by org.apache.camel.jms.JmsComponent
All Implemented Interfaces:
org.apache.camel.Component<JmsExchange>

public class JmsComponent
extends Object
implements org.apache.camel.Component<JmsExchange>

Version:
$Revision: 520539 $

Field Summary
static String QUEUE_PREFIX
           
static String TOPIC_PREFIX
           
 
Constructor Summary
protected JmsComponent()
           
  JmsComponent(org.apache.camel.CamelContext container)
           
protected JmsComponent(org.springframework.jms.core.JmsTemplate template)
           
 
Method Summary
 void activate(JmsEndpoint endpoint, org.apache.camel.Processor<JmsExchange> processor)
           
protected  String convertPathToActualDestination(String path)
          A strategy method allowing the URI destination to be translated into the actual JMS destination name (say by looking up in JNDI or something)
 JmsEndpoint createEndpoint(String uri, String path)
           
 JmsEndpoint createEndpoint(com.sun.jndi.toolkit.url.Uri uri)
           
protected  org.springframework.jms.listener.AbstractMessageListenerContainer createMessageListenerContainer(org.springframework.jms.core.JmsTemplate template)
           
 void deactivate(JmsEndpoint endpoint)
           
 org.apache.camel.CamelContext getContainer()
           
 org.springframework.jms.core.JmsTemplate getTemplate()
           
static JmsComponent jmsComponent()
          Static builder method
static JmsComponent jmsComponent(ConnectionFactory connectionFactory)
          Static builder method
static JmsComponent jmsComponent(org.springframework.jms.core.JmsTemplate template)
          Static builder method
static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory)
          Static builder method
 void setContext(org.apache.camel.CamelContext container)
           
 void setTemplate(org.springframework.jms.core.JmsTemplate template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUEUE_PREFIX

public static final String QUEUE_PREFIX
See Also:
Constant Field Values

TOPIC_PREFIX

public static final String TOPIC_PREFIX
See Also:
Constant Field Values
Constructor Detail

JmsComponent

protected JmsComponent()

JmsComponent

protected JmsComponent(org.springframework.jms.core.JmsTemplate template)

JmsComponent

public JmsComponent(org.apache.camel.CamelContext container)
Method Detail

jmsComponent

public static JmsComponent jmsComponent()
Static builder method


jmsComponent

public static JmsComponent jmsComponent(org.springframework.jms.core.JmsTemplate template)
Static builder method


jmsComponent

public static JmsComponent jmsComponent(ConnectionFactory connectionFactory)
Static builder method


jmsComponentClientAcknowledge

public static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory)
Static builder method


createEndpoint

public JmsEndpoint createEndpoint(com.sun.jndi.toolkit.url.Uri uri)

createEndpoint

public JmsEndpoint createEndpoint(String uri,
                                  String path)

getTemplate

public org.springframework.jms.core.JmsTemplate getTemplate()

setTemplate

public void setTemplate(org.springframework.jms.core.JmsTemplate template)

getContainer

public org.apache.camel.CamelContext getContainer()

setContext

public void setContext(org.apache.camel.CamelContext container)
Specified by:
setContext in interface org.apache.camel.Component<JmsExchange>

createMessageListenerContainer

protected org.springframework.jms.listener.AbstractMessageListenerContainer createMessageListenerContainer(org.springframework.jms.core.JmsTemplate template)

convertPathToActualDestination

protected String convertPathToActualDestination(String path)
A strategy method allowing the URI destination to be translated into the actual JMS destination name (say by looking up in JNDI or something)


activate

public void activate(JmsEndpoint endpoint,
                     org.apache.camel.Processor<JmsExchange> processor)

deactivate

public void deactivate(JmsEndpoint endpoint)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.