Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jms-dev] JMSContext Scoping


The request scope is indeed active on MDB delivery:


Guillermo González de Agüero

El mié., 12 dic. 2018 a las 15:44, Jonathan S. Fisher (<exabrial+eclipse@xxxxxxxxx>) escribió:
The JMS 2.0 spec left a pretty big hole in the spec with JMSContext. Essentially, the spec says JMSContext should be request scoped, or tx scoped, but doesn't give any guidance beyond that. There are plenty of times (ironically, one of them being from an MDB) where you have neither request scope or tx scope active.

I would propose the JMSContext stay TX scoped first, then request scoped if theres no ongoing transaction, then @Dependent scoped as a safe default if the other two are not available.

jms-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top