-
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 » -
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 » -
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 » -
jpa
Map Java Enum type in JPA
In this example we shall show you how to map a Java Enum type in JPA. The Java Persistence API…
Read More » -
jpa
Named query with entity in JPA
This is an example of how to create a named query with an entity in JPA. The Java Persistence API…
Read More » -
jpa
One To Many bidirectional mapping in JPA
With this example we are going to demonstrate how to use One to Many bidirectional mapping in JPA. The Java…
Read More » -
jpa
Many To One Mapping in JPA
In this example we shall show you how to create a many to one mapping in JPA. The Java Persistence…
Read More » -
jpa
Remove Entity with JPA
This is an example of how to remove an entity using the JPA. The Java Persistence API provides Java developers…
Read More » -
jpa
Get single object in JPA
With this example we are going to demonstrate how to get a single object in JPA. The Java Persistence API…
Read More »