Skip to main content

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

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.


Back to the top