Skip to main content

Problem:

BES 6.5 EJB container default to Durable if subscription-durability not set

  • Product Name: Borland Enterprise Server
  • Product Version: 6.5
  • Product Component: JMS, Sonic-MQ 6.0
  • Platform/OS version: all
  • JDK: Not Applicable
  • Patch Level: 24 and below

Resolution:

According to page 314 of the EJB Specification 2.0, programmer can set the subscription-durability field in Message Driven Bean (MDB) deployment descriptor to "durable" to ensure all JMS messages will be delivered to the subscriber. If the subscription-durability field is NOT set, EJB container should default to "non-durable". When a subscription-durability is non-durable, JMS messages may be missed when there is no MDB to process the message.

Sonics-MQ registers the MDB as "durable" if the subscription-durability field is not set.

Tibco implementation, for instance, conforms to EJB specification and defaults the EJB container to "non-durable".

In the meantime, explicitly set the subscription-durability field to NonDurable for non-durable subscription.

A defect CR 8531 is filed and a formal patch will be released in patch 25.


Author: Matthew Ong
Date of Release: 28 Dec 2006

Old KB# 15229

#BorlandApplicationServer
#mdb
#Security
#VisiBroker