Skip to main content

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

Hi,

The request scope is indeed active on MDB delivery: http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#request_context_ee


Regards,

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.

cheers,
-Jonathan
_______________________________________________
jms-dev mailing list
jms-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jms-dev

Back to the top