org.jboss.ejb3.mdb
Class ProducerManagerImpl

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

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

comment

Author:
Bill Burke
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  String factoryLookup
           
protected  InitialContext initialContext
           
protected  Hashtable initialContextProperties
           
protected  HashMap methodMap
           
protected  javax.jms.MessageProducer msgProducer
           
protected  String password
           
protected  int priority
           
protected  javax.jms.Session session
           
protected  int timeToLive
           
protected  boolean transacted
           
protected  String username
           
 
Constructor Summary
ProducerManagerImpl()
           
ProducerManagerImpl(javax.jms.Destination destination, javax.jms.ConnectionFactory factory, org.jboss.ejb3.annotation.DeliveryMode deliveryMode, int timeToLive, int priority, HashMap methodMap, Hashtable initialContextProperties, boolean transacted, int acknowledgeMode)
           
ProducerManagerImpl(javax.jms.Destination destination, String factory, org.jboss.ejb3.annotation.DeliveryMode deliveryMode, int timeToLive, int priority, HashMap methodMap, Hashtable initialContextProperties, boolean transacted, int acknowledgeMode)
           
 
Method Summary
 void close()
           
 void commit()
           
 void connect()
           
 String getName()
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 void readExternal(ObjectInput in)
           
 void rollback()
           
 void setPassword(String passwd)
           
 void setUsername(String user)
           
 void writeExternal(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 String factoryLookup

deliveryMode

protected int deliveryMode

timeToLive

protected int timeToLive

priority

protected int priority

methodMap

protected 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 String username

password

protected transient String password

initialContext

protected transient InitialContext initialContext

initialContextProperties

protected 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,
                           HashMap methodMap,
                           Hashtable initialContextProperties,
                           boolean transacted,
                           int acknowledgeMode)

ProducerManagerImpl

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

ProducerManagerImpl

public ProducerManagerImpl()
Method Detail

writeExternal

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

readExternal

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

setUsername

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

setPassword

public void setPassword(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 String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.