Java Reference
In-Depth Information
As you've seen before, the
@Stateless
annotation marks the POJO as a stateless session
bean . The
DefaultBidService
class implements the
BidService
interface,
which is marked
@Remote
. The
@Resource
annotation is used to perform injection
of a JDBC data source . The
PostConstruct
and
PreDestroy
callbacks
are used to manage a JDB database connection derived from the injected data source. If a
client will be accessing remotely, you define a remote interface using the
@Remote
an-