org.eclipse.jst.j2ee.ejb
Interface MessageDrivenDestination

All Superinterfaces:
J2EEEObject

public interface MessageDrivenDestination
extends J2EEEObject

The message-driven-destination element provides advice to the Deployer as to whether a message-driven bean is intended for a Queue or a Topic. The declaration consists of: the type of the message-driven bean's intended destination and an optional declaration of whether a durable or non-durable subscription should be used if the destination-type is javax.jms.Topic.

Since:
1.0

Method Summary
 MessageDriven getBean()
           
 SubscriptionDurabilityKind getSubscriptionDurability()
           
 DestinationType getType()
           
 boolean isSetSubscriptionDurability()
          Returns whether the value of the 'Subscription Durability' attribute is set
 boolean isSetType()
          Returns whether the value of the 'Type' attribute is set
 void setBean(MessageDriven value)
           
 void setSubscriptionDurability(SubscriptionDurabilityKind value)
          Sets the value of the 'Subscription Durability' attribute
 void setType(DestinationType value)
          Sets the value of the 'Type' attribute
 void unsetSubscriptionDurability()
          Unsets the value of the 'Subscription Durability' attribute
 void unsetType()
          Unsets the value of the 'Type' attribute
 

Method Detail

getType

public DestinationType getType()
Returns:
The value of the Type attribute The destination-type element specifies the type of the JMS destination. The type is specified by the Java interface expected to be implemented by the destination. The destination-type element must be one of the two following: javax.jms.Queue, javax.jms.Topic

setType

public void setType(DestinationType value)
Sets the value of the 'Type' attribute.

Parameters:
value - the new value of the 'Type' attribute.
See Also:
DestinationType, isSetType(), unsetType(), getType()

unsetType

public void unsetType()
Unsets the value of the 'Type' attribute.

See Also:
isSetType(), getType(), setType(DestinationType)

isSetType

public boolean isSetType()
Returns whether the value of the 'Type' attribute is set.

Returns:
whether the value of the 'Type' attribute is set.
See Also:
unsetType(), getType(), setType(DestinationType)

getSubscriptionDurability

public SubscriptionDurabilityKind getSubscriptionDurability()
Returns:
The value of the SubscriptionDurability attribute The subscription-durability element specifies whether a JMS topic subscription is intended to be durable or nondurable. The subscription-durability element must be one of the two following: Durable, NonDurable

setSubscriptionDurability

public void setSubscriptionDurability(SubscriptionDurabilityKind value)
Sets the value of the 'Subscription Durability' attribute.

Parameters:
value - the new value of the 'Subscription Durability' attribute.
See Also:
SubscriptionDurabilityKind, isSetSubscriptionDurability(), unsetSubscriptionDurability(), getSubscriptionDurability()

unsetSubscriptionDurability

public void unsetSubscriptionDurability()
Unsets the value of the 'Subscription Durability' attribute.

See Also:
isSetSubscriptionDurability(), getSubscriptionDurability(), setSubscriptionDurability(SubscriptionDurabilityKind)

isSetSubscriptionDurability

public boolean isSetSubscriptionDurability()
Returns whether the value of the 'Subscription Durability' attribute is set.

Returns:
whether the value of the 'Subscription Durability' attribute is set.
See Also:
unsetSubscriptionDurability(), getSubscriptionDurability(), setSubscriptionDurability(SubscriptionDurabilityKind)

getBean

public MessageDriven getBean()
Returns:
The Bean reference

setBean

public void setBean(MessageDriven value)
Parameters:
value - The new value of the Bean reference