Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ejb stateless class has to be public?

Can @Stateless class have different modifiers than public? In documentation I have only found constraints of constructor/methods visibility, but nothing interesting about class level access.

like image 328
Marcin Szymczak Avatar asked Sep 03 '25 07:09

Marcin Szymczak


1 Answers

According to ejb3-1 specification:

4.9.2 Session Bean Class

The following are the requirements for the session bean class:

• The class must be defined as public, must not be final, and must not be abstract. The class must be a top level class

like image 171
Gabriel Aramburu Avatar answered Sep 04 '25 21:09

Gabriel Aramburu