org.apache.cocoon.components.jms
Class JMSConnectionImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.jms.JMSConnectionImpl
All Implemented Interfaces:
Disposable, Initializable, Configurable, LogEnabled, ThreadSafe, JMSConnection

Deprecated. use JMSConnectionManager instead

public class JMSConnectionImpl
extends AbstractLogEnabled
implements Configurable, Disposable, ThreadSafe, Initializable, JMSConnection

JMSConnection properties container plus utilities.

Configuration:

<jndi-info>
      <parameter name="" value=""/>
 <jndi-info>

Other parameters:

topic-factory (required, no default)
topic (required, no default)
ack-mode ("dups")
durable-subscription-id (optional)

Version:
CVS $Id: JMSConnectionImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
haul

Field Summary
protected  int ackMode
          Deprecated.  
protected  String ackModeName
          Deprecated.  
protected  TopicConnection connection
          Deprecated.  
protected  Context context
          Deprecated.  
protected  String durableSubscriptionID
          Deprecated.  
protected  TopicSession session
          Deprecated.  
protected  List subscribers
          Deprecated.  
protected  Topic topic
          Deprecated.  
protected  TopicConnectionFactory topicConnectionFactory
          Deprecated.  
protected  String topicFactoryName
          Deprecated.  
protected  String topicName
          Deprecated.  
 
Fields inherited from interface org.apache.cocoon.components.jms.JMSConnection
ROLE
 
Constructor Summary
JMSConnectionImpl()
          Deprecated.  
 
Method Summary
 void configure(Configuration conf)
          Deprecated.  
 void dispose()
          Deprecated.  
 TopicPublisher getPublisher()
          Deprecated. Get a new TopicPublisher for this connection.
 TopicSession getSession()
          Deprecated. Get the session associated with this connection.
 void initialize()
          Deprecated.  
 void registerListener(MessageListener listener, String selector)
          Deprecated. Register a new TopicListener for this connection.
protected  Context setupContext()
          Deprecated. Get initial context.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicFactoryName

protected String topicFactoryName
Deprecated. 

topicName

protected String topicName
Deprecated. 

ackModeName

protected String ackModeName
Deprecated. 

durableSubscriptionID

protected String durableSubscriptionID
Deprecated. 

connection

protected TopicConnection connection
Deprecated. 

session

protected TopicSession session
Deprecated. 

subscribers

protected List subscribers
Deprecated. 

topic

protected Topic topic
Deprecated. 

ackMode

protected int ackMode
Deprecated. 

context

protected Context context
Deprecated. 

topicConnectionFactory

protected TopicConnectionFactory topicConnectionFactory
Deprecated. 
Constructor Detail

JMSConnectionImpl

public JMSConnectionImpl()
Deprecated. 
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
Deprecated. 
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

initialize

public void initialize()
                throws Exception
Deprecated. 
Specified by:
initialize in interface Initializable
Throws:
Exception

dispose

public void dispose()
Deprecated. 
Specified by:
dispose in interface Disposable

registerListener

public void registerListener(MessageListener listener,
                             String selector)
                      throws CascadingException,
                             JMSException,
                             NamingException
Deprecated. 
Register a new TopicListener for this connection.

Specified by:
registerListener in interface JMSConnection
Parameters:
listener -
selector -
Throws:
CascadingException - if the connection was not successfully initialized, JMSException or NamingException if errors occur during JMS methods. It is up to the MessageListener to determine how to handle this failure.
JMSException
NamingException

getPublisher

public TopicPublisher getPublisher()
                            throws JMSException,
                                   NamingException
Deprecated. 
Get a new TopicPublisher for this connection.

Specified by:
getPublisher in interface JMSConnection
Returns:
TopicPublisher
Throws:
JMSException
NamingException

getSession

public TopicSession getSession()
                        throws NamingException,
                               JMSException
Deprecated. 
Get the session associated with this connection. This is needed for example to create messages.

Specified by:
getSession in interface JMSConnection
Returns:
session associated with this connection
Throws:
NamingException
JMSException

setupContext

protected Context setupContext()
                        throws NamingException
Deprecated. 
Get initial context.

Returns:
initial context
Throws:
NamingException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.