Contexts & Dependency Injection for Java

CDI EG meeting 11/25/2013 notes on CDI 1.1.1 MR

Posted by Antoine Sabot-Durand on Nov 25, 2013 | Comments

In this meeting we came back on CDI-370 : Expand @RequestScoped and @SessionScoped to account for WebSocket and added some other issues. The following people assisted this meeting :

  • Pete Muir (pm)

  • Mark Struberg (ms)

  • Jozef Hartinger (jh)

  • Joseph Bergmark (jb)

  • Arne Limburg (al)

  • Stuart Douglas (sd) (Websocket expert)

  • Phil Zampino (pz) (Java EE EG member)

  • Martin Kouba (mk)

  • JJ Snyder (jj)

  • Antoine Sabot-Durand (asd)

Proposed Agenda

The following agenda was proposed by asd

  1. Back on Websocket + RequestScoped issue : CDI-370 : Expand @RequestScoped and @SessionScoped to account for WebSocket Stuart Douglas will be our Guest Star to help us sort out if we can fix this issue on CDI side and if yes, if it’s doable in the MR timeframe

  2. If there’s time left let’s discuss the following point :

    • CDI-406 Make stereotypes bean defining annotations.

    • CDI-404 adding bean-defining annotations for Interceptor while setting bean-discovery-mode=« annotated »

    • CDI-389 Revert CDI-85

    • CDI-397 Clarify Section 6.6.3 regarding singletons

    • CDI-395 Public fields in extensions should not be allowed (also easy to decide)

Websocket case (CDI-370 : Expand @RequestScoped and @SessionScoped to account for WebSocket)

sd and pz gave their insight on the meaning of Requestscope and Sessionscope in Websocket perspective. It was roughly a synthesis of our discussion on the ML about the subject ms stressed the fact that implementing one of these solution on CDI impl side could bring performance issue. pm concluded by saying that we should check with Java EE EG if a websocket MR was planned. According to this answer we would statute on this issue

Other issues

CDI-406 Make stereotypes bean defining annotations

pm told there was no technical issue to fix this (no double scan). No one objected so the issue is added to the MR

CDI-389 Revert CDI-85

All agreed we can do the revert to CDI 1.0 regarding generic type. But pm stressed that we should have a big rework on this for CDI 2.0

CDI-397 Clarify Section 6.6.3 regarding singletons

asd told that we should go a little beyond and check all occurrences of "singleton" in the spec to clarify if it’s an singleton session bean or a singleton scope. As nobody objected the issue was added to the MR

CDI-395 Public fields in extensions should not be allowed

There was a long discussion on the subject mainly between pm, ms, al and jh. Conclusion is that it can bring more problem to correct this issue. pm suggested that we defer it. al pointed the fact that test on implementation can show that it’s not supported already. If it’s the case it could be safely added to the MR. So further investigation are needed

CDI EG meeting 11/18/2013 notes on CDI 1.1.1 MR

Posted by Antoine Sabot-Durand on Nov 18, 2013 | Comments

The goal of this 1st meeting was to organize the MR launching, and start discussing its content The following people assisted this meeting :

  • Pete Muir (pm)

  • Mark Struberg (ms)

  • Jozef Hartinger (jh)

  • Joseph Bergmark (jb)

  • Arne Limburg (al)

  • Antoine Sabot-Durand (asd)

Proposed Agenda

The following agenda was proposed by asd

  1. MR proposed roadmap

  2. Content of the proposed list

  3. Try to have a 1st decision on big tickets (tickets with great impact on implementation or spec)

    • CDI-377 : automatic JSR-330 annotation processing problematic

    • CDI-370 : Expand @RequestScoped and @SessionScoped to account for WebSocket

    • others

Proposed Roadmap

As we should run the MR in 60 days and that we cannot change its content after its start we proposed the following roadmap

  • 16th Dec - list of issues complete

  • 6th Jan - Maintenance review starts

  • 7th March - Maintenance review ends

  • 21st March - Maintenance ballot ends

This roadmap integrates the holidays constraints as well. It’ll be confirmed after the meeting pm and asd will have with the Java EE spec leads/Oracle on 11/26

Content of the proposed list

asd stressed on the fact that the long proposed list won’t probably fit in the MR but that would be nice to provide them a status. We decided to deal the most important ticket first.

list of tickets

CDI-377 : automatic JSR-330 annotation processing problematic

All the participant agreed that this ticket could be quite tricky. 2 scenario for solving it

  • Having an umbrella scanning mechanism : beyond CDI and off course the MR.pm took note of escalate this need to the JCP

  • in the meantime could investigate an exclusion in beans.xml. this solution is to be explored and if we have an agreement we could provide a fix in MR scope

CDI-370 : Expand @RequestScoped and @SessionScoped to account for WebSocket

A tricky issue as well. No one in the EG has a sufficient knowloedge of websocket sepc to statute ont in so pm propose to ask help to Matthias Wessendorf

Other tickets related to @RequestScoped clarification