The latest version of the EJB 3.2 spec available on java.net project


If you are not following us on the users alias, here is a quick update.



Just before JavaOne, I uploaded the latest version of the EJB 3.2 Core document to the ejb-spec.java.net downloads. If you want to see the detailed changes, download it

If you are interested in the high-level list, or would like to know what to look for, this is the list of changes since the previous version (found on the same download page):


  • Specified that the SessionContext object in a the singleton session bean is thread-safe

  • Clarified that the EJB timers distribution and failover rules apply only to persistent timers

  • Clarified that non-persistent timers returned by getTimers and getAllTimers methods are from the same JVM as the caller

  • Fixed section numbering (left over after moving it to its own chapter) in Ch 17

  • Noted that only 3.0 and 3.1 deployment descriptors are required to be supported in EJB 3.2 Lite for prior versions of the applications

  • Fixes for EJB_SPEC-61 (Ambiguity in EJB lite local view support) and EJB_SPEC-59 (Improve references to the component-defining annotations)

  • JMS/MDB changes: added new standard activation properties and the unique identifier, and rearranged sections for easier navigation

  • Fixed unresolved cross-refs

  • Updated the rule: only local asynchronous session bean invocations are supported in EJB 3.2 Lite

  • Synchronized permissions in the Table with the permissions listed for the EJB Components in the Java EE Platform Specification Table EE.6-2

  • Specified that during processing of the close() method, the embeddable container cancels all pending asynchronous invocations and non-persistent timers

  • Updated most of the referenced documents to their latest versions

Happy reading!


Comments:

Hello Marina

I don't know how to propose an enhancement other than this way. So here it is:
Can we make @ConcurrencyManagement(BEAN) allowed on @Stateless beans? The desired behaviour would be that @Stateless beans marked with @ConcurrencyManagement(BEAN) would stop being pooled and only a single instance would be shared. In other words, it would say the same as for other beans that can have this designation: "I (developer) am responsible for thread safety of the bean instance".
This would GREATLY improved EJB in my point of view.
A side comment: No, it is not the same as @Singleton @ConcurrencyManagement(BEAN) because my code does NOT depend on the fact that the bean instance is a singleton and thus can be discarded anytime and created a new one if the app server desires.

Please, Please, Please! Consider this enhancement. Or please tell me a better way to suggest it publicly. Thank you.

Posted by Shine Developer on December 29, 2012 at 01:06 AM PST #

You can always file an RFE in the JIRA: http://java.net/jira/browse/EJB_SPEC

I'm not sure I understand the use case. Stateless session beans do not hold the state. Why would you need to share such instance?

Posted by guest on December 31, 2012 at 01:58 PM PST #

1. Thank you for pointing me to JIRA. I filed the RFE.

2. I DON'T NEED to have exactly 1 shared instance. Quite the contrary. I want to prevent the EJB container from HAVING TO instantiate MULTIPLE bean instances MANDATORILY for concurrent access, if the bean is thread-safe by the application developer's design (e.g. by not using mutable instance fields). Currently, the EJB containers MUST instantiate MULTIPLE instances of a stateless beans for simultaneous access, which massively wastes resources 99% of time.

If you want, I can attach a JUnit test showing the massive wasting of resources.

Posted by guest on January 01, 2013 at 11:08 AM PST #

Let's continue this discussion in the JIRA that you filed (http://java.net/jira/browse/EJB_SPEC-79).

-marina

Posted by marina on January 02, 2013 at 11:37 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Marina Vatkina

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News

No bookmarks in folder

Blogroll
Related Links