public class MDBDescriptor extends BasicEjbDescriptor
Constructor and Description |
---|
MDBDescriptor(java.lang.String connectionFactoryJndiName,
java.lang.String destinationJndiName,
java.lang.Object bean)
Creates a new instance of the descriptor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectionFactoryJndiName() |
java.lang.String |
getDestinationJndiName() |
boolean |
isAlreadyBound() |
boolean |
isTopic() |
void |
setIsAlreadyBound(boolean isAlreadyBound)
If set to True, MockEJB will assume that the connection factory and
desination already exist and bound in JNDI.
|
void |
setIsTopic(boolean isTopic) |
getBean, getBeanClass, getHomeClass, getIfaceClass, getJndiName
public MDBDescriptor(java.lang.String connectionFactoryJndiName, java.lang.String destinationJndiName, java.lang.Object bean)
connectionFactoryJndiName
- JNDI name of the connection factory.destinationJndiName
- JNDI name of the desination. Queue is the default,
unless isTopic is set.bean
- bean object. Must implement MessageListener interface.public void setIsTopic(boolean isTopic)
public void setIsAlreadyBound(boolean isAlreadyBound)
isAlreadyBound
- do not create destination and connection factory if set to truepublic java.lang.String getConnectionFactoryJndiName()
public java.lang.String getDestinationJndiName()
public boolean isTopic()
public boolean isAlreadyBound()