org.sca4j.binding.jms.runtime.lookup.connectionfactory
Class AlwaysConnectionFactoryStrategy

java.lang.Object
  extended by org.sca4j.binding.jms.runtime.lookup.connectionfactory.AlwaysConnectionFactoryStrategy
All Implemented Interfaces:
ConnectionFactoryStrategy

public class AlwaysConnectionFactoryStrategy
extends java.lang.Object
implements ConnectionFactoryStrategy

The connection factory is never looked up, it is always created.

Version:
$Revision: 4186 $ $Date: 2008-05-13 04:19:40 +0100 (Tue, 13 May 2008) $

Constructor Summary
AlwaysConnectionFactoryStrategy()
           
 
Method Summary
 javax.jms.ConnectionFactory getConnectionFactory(ConnectionFactoryDefinition definition, java.util.Hashtable<java.lang.String,java.lang.String> env, java.lang.ClassLoader classLoader)
          Gets the connection factory based on SCA JMS binding rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysConnectionFactoryStrategy

public AlwaysConnectionFactoryStrategy()
Method Detail

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory(ConnectionFactoryDefinition definition,
                                                        java.util.Hashtable<java.lang.String,java.lang.String> env,
                                                        java.lang.ClassLoader classLoader)
Description copied from interface: ConnectionFactoryStrategy
Gets the connection factory based on SCA JMS binding rules.

Specified by:
getConnectionFactory in interface ConnectionFactoryStrategy
Parameters:
definition - Connection factory definition.
env - JNDI environment.
Returns:
Lokked up or created destination.
See Also:
org.sca4j.binding.jms.runtime.lookup.connectionfactory.ConnectionFactoryStrategy#getConnectionFactory(org.sca4j.binding.jms.common.ConnectionFactoryDefinition, java.util.Hashtable)


Copyright © 2008-2010 Service Symphony. All Rights Reserved.