Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any kind of 'enterprise container' needed in java? [closed]

Have philosophic question.
Why is it worth to have kind of 'enterprise container' in java? Why not support enterprise container features on JVM level?
For example what if I want to use some of EJB features in my desktop application. Is here something wrong in architecture point of view?
You CAN use Spring 'enterprise features' without 'enterprise container' like Glassfish even without 'servlet container' like Tomcat. And this is good, isn't it?

Thanks.

like image 567
Mike Avatar asked Dec 30 '25 07:12

Mike


1 Answers

The JVM already gets its beating for starting up slowly. Adding the stuff provided by a J2EE Environment would make this even worse.

Of course you can run a EJB Container (or whatever you need) on the desktop if you want.

Update to answer the question in the comment:

Using Enterprise Server Feature often means that you just configure something (putting a XML at a specific place; put an annotation somewhere else. So the JVM would have to check for these signs to decide if it should fire up its Enterprisy pieces.

like image 165
Jens Schauder Avatar answered Jan 01 '26 20:01

Jens Schauder