Does ejb stateless class has to be public?
Asked Answered
A

1

4

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.

Anchylose answered 16/9, 2014 at 11:30 Comment(1)
Well, documentation has a lack of this information, but i know it works as default too.Exit
C
9

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

Chelsiechelsy answered 16/9, 2014 at 11:58 Comment(2)
That actually contradicts a little bit with information from @Bruno FranoAnchylose
no, it doesn't: "works as default too" just means it works now (on some containers) but is not guaranteed to work in future.Boldfaced

© 2022 - 2024 — McMap. All rights reserved.