| .. | .. |
|---|
| 10 | 10 | import java.util.Set; |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | import jakarta.annotation.security.RolesAllowed; |
|---|
| 13 | +import jakarta.enterprise.context.RequestScoped; |
|---|
| 13 | 14 | import jakarta.inject.Inject; |
|---|
| 14 | 15 | import jakarta.persistence.EntityManager; |
|---|
| 15 | 16 | import jakarta.persistence.TypedQuery; |
|---|
| .. | .. |
|---|
| 63 | 64 | * Last reviewed by JRA on Oct 5, 2025. |
|---|
| 64 | 65 | */ |
|---|
| 65 | 66 | @Path("/application") |
|---|
| 67 | +@RequestScoped |
|---|
| 66 | 68 | public class ApplicationResource { |
|---|
| 67 | 69 | |
|---|
| 68 | 70 | @Inject TokenHelper tokenHelper; |
|---|
| 69 | 71 | @Inject MetadataHelper metadataHelper; |
|---|
| 70 | 72 | |
|---|
| 71 | | - @Context EntityManager em; |
|---|
| 73 | + @Inject EntityManager em; |
|---|
| 72 | 74 | |
|---|
| 73 | 75 | private static final Logger LOG = LogManager.getLogger(ApplicationResource.class); |
|---|
| 74 | 76 | |
|---|