org.jboss.ejb3.mdb
Class ProducerManagerImpl

java.lang.Object
  extended by org.jboss.ejb3.mdb.ProducerManagerImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.jboss.aop.advice.Interceptor, ProducerManager

public class ProducerManagerImpl
extends java.lang.Object
implements ProducerManager, java.io.Externalizable, org.jboss.aop.advice.Interceptor

comment

See Also:
Serialized Form

Field Summary
protected  int acknowledgeMode
           
protected  javax.jms.Connection connection
           
protected  int deliveryMode
           
protected  javax.jms.Destination destination
           
protected  javax.jms.ConnectionFactory factory
           
protected  java.lang.String factoryLookup
           
protected  javax.naming.InitialContext initialContext
           
protected  java.util.Hashtable initialContextProperties
           
protected  java.util.HashMap methodMap
           
protected  javax.jms.MessageProducer msgProducer
           
protected  java.lang.String password
           
protected  int priority
           
protected  javax.jms.Session session
           
protected  int timeToLive
           
protected  boolean transacted
           
protected  java.lang.String username
           
 
Constructor Summary
ProducerManagerImpl()
           
ProducerManagerImpl(javax.jms.Destination destination, javax.jms.ConnectionFactory factory, org.jboss.ejb3.annotation.DeliveryMode deliveryMode, int timeToLive, int priority, java.util.HashMap methodMap, java.util.Hashtable initialContextProperties, boolean transacted, int acknowledgeMode)
           
ProducerManagerImpl(javax.jms.Destination destination, java.lang.String factory, org.jboss.ejb3.annotation.DeliveryMode deliveryMode, int timeToLive, int priority, java.util.HashMap methodMap, java.util.Hashtable initialContextProperties, boolean transacted, int acknowledgeMode)
           
 
Method Summary
 void close()
           
 void commit()
           
 void connect()
           
 java.lang.String getName()
           
 java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 void readExternal(java.io.ObjectInput in)
           
 void rollback()
           
 void setPassword(java.lang.String passwd)
           
 void setUsername(java.lang.String user)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destination

protected javax.jms.Destination destination

factoryLookup

protected java.lang.String factoryLookup

deliveryMode

protected int deliveryMode

timeToLive

protected int timeToLive

priority

protected int priority

methodMap

protected java.util.HashMap methodMap

factory

protected transient javax.jms.ConnectionFactory factory

connection

protected transient javax.jms.Connection connection

session

protected transient javax.jms.Session session

msgProducer

protected transient javax.jms.MessageProducer msgProducer

username

protected transient java.lang.String username

password

protected transient java.lang.String password

initialContext

protected transient javax.naming.InitialContext initialContext

initialContextProperties

protected java.util.Hashtable initialContextProperties

transacted

protected boolean transacted

acknowledgeMode

protected int acknowledgeMode
Constructor Detail

ProducerManagerImpl

public ProducerManagerImpl(javax.jms.Destination destination,
                           javax.jms.ConnectionFactory factory,
                           org.jboss.ejb3.annotation.DeliveryMode deliveryMode,
                           int timeToLive,
                           int priority,
                           java.util.HashMap methodMap,
                           java.util.Hashtable initialContextProperties,
                           boolean transacted,
                           int acknowledgeMode)

ProducerManagerImpl

public ProducerManagerImpl(javax.jms.Destination destination,
                           java.lang.String factory,
                           org.jboss.ejb3.annotation.DeliveryMode deliveryMode,
                           int timeToLive,
                           int priority,
                           java.util.HashMap methodMap,
                           java.util.Hashtable initialContextProperties,
                           boolean transacted,
                           int acknowledgeMode)

ProducerManagerImpl

public ProducerManagerImpl()
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

setUsername

public void setUsername(java.lang.String user)
Specified by:
setUsername in interface ProducerManager

setPassword

public void setPassword(java.lang.String passwd)
Specified by:
setPassword in interface ProducerManager

connect

public void connect()
             throws javax.jms.JMSException
Specified by:
connect in interface ProducerManager
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface ProducerManager
Throws:
javax.jms.JMSException

commit

public void commit()
            throws javax.jms.JMSException
Specified by:
commit in interface ProducerManager
Throws:
javax.jms.JMSException

rollback

public void rollback()
              throws javax.jms.JMSException
Specified by:
rollback in interface ProducerManager
Throws:
javax.jms.JMSException

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
java.lang.Throwable