Java Reference
In-Depth Information
NetBeans automatically appends the suffix
Bean
to whatever name we
choose for our session bean, therefore we shouldn't explicitly use this
suffix in our bean names. For instance, in our example, we created a
session bean named
Echo
, therefore the generated class name for it will
be
EchoBean
.
After selecting all the appropriate options and clicking
Finish
, our session bean and
remote interface are created.
The generated code for our session bean is simply an empty class with the
@Stateless
annotation already added.