| java.lang.Object org.mockejb.BasicEjbDescriptor org.mockejb.MDBDescriptor
MDBDescriptor | public class MDBDescriptor extends BasicEjbDescriptor (Code) | | Provides the information that MockEJB needs to "deploy" MDB.
This includes JNDI names of the connection factory and destination.
MockEJB uses its mock JMS implementation to create connection factory and
destination and bind them to JNDI.
It then creates MDB and sets it as the message listener to the destination.
author: Alexander Ananiev |
Constructor Summary | |
public | MDBDescriptor(String connectionFactoryJndiName, String destinationJndiName, Object bean) Creates a new instance of the descriptor.
Parameters: connectionFactoryJndiName - JNDI name of the connection factory. Parameters: destinationJndiName - JNDI name of the desination. |
MDBDescriptor | public MDBDescriptor(String connectionFactoryJndiName, String destinationJndiName, Object bean)(Code) | | Creates a new instance of the descriptor.
Parameters: connectionFactoryJndiName - JNDI name of the connection factory. Parameters: destinationJndiName - JNDI name of the desination. Queue is the default, unless isTopic is set. Parameters: bean - bean object. Must implement MessageListener interface. |
getConnectionFactoryJndiName | public String getConnectionFactoryJndiName()(Code) | | |
getDestinationJndiName | public String getDestinationJndiName()(Code) | | |
isAlreadyBound | public boolean isAlreadyBound()(Code) | | |
isTopic | public boolean isTopic()(Code) | | |
setIsAlreadyBound | public void setIsAlreadyBound(boolean isAlreadyBound)(Code) | | If set to True, MockEJB will assume that the connection factory and
desination already exist and bound in JNDI. Otherwise, MockEJB will try
to create them using Mock JMS objects and bind them to JNDI.
The default is "false".
Parameters: isAlreadyBound - do not create destination and connection factory if set to true |
setIsTopic | public void setIsTopic(boolean isTopic)(Code) | | |
|
|