org.sca4j.binding.jms.runtime
Class JMSObjectFactory

java.lang.Object
  extended by org.sca4j.binding.jms.runtime.JMSObjectFactory

public class JMSObjectFactory
extends java.lang.Object

This is a factory class handling cache, recover. etc for a connectionFactory/destination pair related JMS objects.


Constructor Summary
JMSObjectFactory(javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination, int cacheLevel)
           
 
Method Summary
 javax.jms.Connection getConnection()
           
 javax.jms.ConnectionFactory getConnectionFactory()
           
 javax.jms.Destination getDestination()
           
 java.lang.String getDestinationName()
           
 javax.jms.Session getSession(javax.jms.Connection connection, TransactionType transactionType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSObjectFactory

public JMSObjectFactory(javax.jms.ConnectionFactory connectionFactory,
                        javax.jms.Destination destination,
                        int cacheLevel)
Method Detail

getDestinationName

public java.lang.String getDestinationName()

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()

getConnection

public javax.jms.Connection getConnection()
                                   throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getDestination

public javax.jms.Destination getDestination()

getSession

public javax.jms.Session getSession(javax.jms.Connection connection,
                                    TransactionType transactionType)
                             throws javax.jms.JMSException
Throws:
javax.jms.JMSException


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