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

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

public class IfNotExistConnectionFactoryStrategy
extends java.lang.Object
implements ConnectionFactoryStrategy

The destination is looked up, if not found it is created.


Constructor Summary
IfNotExistConnectionFactoryStrategy()
           
 
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

IfNotExistConnectionFactoryStrategy

public IfNotExistConnectionFactoryStrategy()
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.