Search Results for: java 8
-
hibernate
Retrieve objects in Hibernate with HQL query
With this example we are going to demonstrate how to retrieve objects in Hibernate with HQL query. In short, to…
Read More » -
hibernate
Persist object with Hibernate
This is an example of how to persist an object with Hibernate. To persist an object with Hibernate we have…
Read More » -
hibernate
Create Hibernate SessionFactory example
In this example we shall show you how to create a new SessionFactory example in Hibernate. To create a new…
Read More » -
Web Services
Expose EJB as a Web Service
With this example we are going to demonstrate how to expose an EJB as a web service. Enterprise beans are…
Read More » -
Injection
Reference EJB in another EJB of different applications
This is an example of how to create a reference of an EJB in another EJB of different applications. Enterprise…
Read More » -
Injection
Reference EJB in another EJB of the same application
In this example we shall show you how to get a reference of an EJB in another EJB of the…
Read More » -
Transactions
Bean managed Transactions
With this example we are going to demonstrate how to handle bean managed transactions using EJBs. Enterprise beans are Java…
Read More » -
Timer
Use Timer service example
This is an example of how to use the javax.ejb.TimerService in an EJB. The TimerService interface provides enterprise bean components…
Read More » -
Stateful Session Bean
Stateful Session Bean to persist Entity
In this example we shall show you how to use a Stateful Session Bean to persist an Entity. In a…
Read More » -
Stateless Session Bean
Simple Stateless Session Bean example
With this example we are going to demonstrate how to create a simple Stateless Session Bean. A stateless session bean…
Read More »