Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] Prune EJB Embeddable Container?

I agree with you tibor we can take this as an opportunity to create something new thinking in the future of the spec that will be cloud-based applications

IMHO

On Fri, Nov 22, 2019 at 12:51 PM Tibor Digana <tibordigana@xxxxxxxxxx> wrote:
The EJB Embeddable Container is used as a test framework, see the TomEE documentation.
In 2014 I used it instead of Arquillian but not today.

Why talking about this granularity that we would prune something from EJB?
Let's prune=deprecate whole EJB or nothing.

I know that removing the EJB in the future may break many users but my argument is that they still may use the application servers with EE 8.0 (javax) or deprecated EE 9.0 EJB (jakarta).

I remember that the Oracle had the ambition to provide EE container based test framework.
The Embedded Container was quite fast to run the tests but it was only EJB!
Probably, and I would appreciate, we should provide some f/w for the Microservices and appropriate EE profiles.
For instance i wrote my own test JUnit Runner / framework on my GitHub with IoC, DI, JTA, JMS, JPA and combined it with Dropwizard to test JAX-RS servlets.
It was as fast as the usual unit tests. Notice that Spring has it's own Runner but we don't!
Additionally, it enabled us for parallel testing (isolated containers without using ClassLoaders).

The EJB Embeddable Container bought the idea of unit testing the EE apps which was maybe a hack on our side of the users but it showed us a direction with CDI and another APIs too.
So yes, let's deprecate EJB now and remove it later but then provide us with some new Embedded Container for very fast testiing of the backend apps.


On Thu, Nov 21, 2019 at 9:22 PM Emily Jiang <emijiang6@xxxxxxxxxxxxxx> wrote:
Thanks for sharing your thoughts Andy! I think another approach is to improve CDI by adding the capability from EJB  and then gradually moves away from EJB rather than integrating CDI deeper into EJB.
Thanks 
Emily 


On Nov 21, 2019 at 5:02 pm, <Andy Bailey> wrote:

Hi,

Extending the EJB container to enable CDI is an excellent idea, something I spoke with Emily Jiang about at Devoxx BE.

On 21 Nov 2019 17:56, arjan tijms <arjan.tijms@xxxxxxxxx> wrote:
Hi,

Back then we discussed whether it would not actually made more sense to have Java EE as a whole embeddable, not just the EJB container. Since then we did see the CDI "embeddable container" and the JAX-RS SE mode, so there's a small trend towards that goal, but still a long way to go.

Does anyone use the embeddable container perhaps to add EJB support to say Tomcat?

Kind regard,
Arjan


On Thu, Nov 21, 2019 at 5:35 PM Andy Bailey <Andy.Bailey@xxxxxxxxxxxxx> wrote:
Hi Guillermo,

Yes you can but they don't support all the scopes you might need, like SessionScoped.
Personally I am far more concerned about losing this facility than I am about retaining it in the spec.
Perhaps a wider, more public canvas to gather usage statitistics outside testing might give us more guidance?

On 21 Nov 2019 17:14, Guillermo González de Agüero <z06.guillermo@xxxxxxxxx> wrote:
I haven't used the embedded container myself but I assume for testing you'd be able to use any standalone implementation, no?

El jue., 21 nov. 2019 17:01, Andy Bailey <Andy.Bailey@xxxxxxxxxxxxx> escribió:
The EJB Embeddable Container has a lot of utility for Unit Testing, at least in enterprise projects I have been involved in.
If pruning this from the specification means losing this ability, this might be a loss to regret.

Andy Bailey

On 21 Nov 2019 16:46, carlos andres de la rosa <kusanagi12002@xxxxxxxxx> wrote:
Hello kevin

i think that we can vote for prune this if is something that is not widely used and like we discussed the last Jakarta EE call we can add it later if is necessary

IMHO

Thank you

On Thu, Nov 21, 2019 at 4:39 PM Kevin Sutter <sutter@xxxxxxxxxx> wrote:
Hi,
This idea came up during our IBM discussions relating to the Pruning Vote that Steve initiated.  What about the EJB Embeddable Container?  We provide one because the Spec requires it, but we have no customers using it (that we know of anyway).  Is the pruning of the EJB Embeddable Container something we could also put out for a Vote?  Or, is our customer usage an anomaly and there is industry interest in this artifact?  Thanks!

---------------------------------------------------
Kevin Sutter
STSM, MicroProfile and Jakarta EE architect
e-mail:  sutter@xxxxxxxxxx     Twitter:  @kwsutter
phone: tl-553-3620 (office), 507-253-3620 (office)    
LinkedIn:
https://www.linkedin.com/in/kevinwsutter
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev


--

Carlos Andres De La Rosa | Software Architect

Mobile: +32465445631  

Skype: carlosa.dlr



Faktor Zehn GmbH       Sitz der Gesellschaft: München  Registernummer: HRB 242535 Registergericht: Amtsgericht München
Geschaeftsfuehrung: Dr. Florian Schwandt, Joerg Renger
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev



Faktor Zehn GmbH       Sitz der Gesellschaft: München  Registernummer: HRB 242535 Registergericht: Amtsgericht München
Geschaeftsfuehrung: Dr. Florian Schwandt, Joerg Renger
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev



Faktor Zehn GmbH       Sitz der Gesellschaft: München  Registernummer: HRB 242535 Registergericht: Amtsgericht München
Geschaeftsfuehrung: Dr. Florian Schwandt, Joerg Renger
_______________________________________________ jakartaee-platform-dev mailing list jakartaee-platform-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev
_______________________________________________
jakartaee-platform-dev mailing list
jakartaee-platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jakartaee-platform-dev


--

Carlos Andres De La Rosa | Software Architect

Mobile: +32465445631  

Skype: carlosa.dlr


Back to the top