Commit 6f66ac4bc4ca8ffba1f01547436bd86fa50645e8
1 parent
ffd41d35
Exists in
master
and in
1 other branch
Remove escopo EJB do InfoResource
InfoResource estava com anotações EJB desnecessárias e que causavam erro no ambiente clusterizado.
Showing
1 changed file
with
2 additions
and
10 deletions
Show diff stats
src/main/java/br/gov/ans/integracao/sei/rest/InfoResource.java
... | ... | @@ -5,11 +5,7 @@ import static br.gov.ans.integracao.sei.utils.Util.setPaginacaoQuery; |
5 | 5 | |
6 | 6 | import java.util.List; |
7 | 7 | |
8 | -import javax.ejb.Stateful; | |
9 | -import javax.ejb.TransactionManagement; | |
10 | -import javax.ejb.TransactionManagementType; | |
11 | 8 | import javax.inject.Inject; |
12 | -import javax.inject.Named; | |
13 | 9 | import javax.persistence.EntityManager; |
14 | 10 | import javax.persistence.PersistenceContext; |
15 | 11 | import javax.persistence.PersistenceContextType; |
... | ... | @@ -31,11 +27,7 @@ import br.gov.ans.integracao.sei.utils.Constantes; |
31 | 27 | import br.gov.ans.modelo.LogIntegracaoSistemica; |
32 | 28 | import br.gov.ans.utils.MessageUtils; |
33 | 29 | |
34 | - | |
35 | -@Named | |
36 | 30 | @Path("/info") |
37 | -@Stateful | |
38 | -@TransactionManagement(TransactionManagementType.BEAN) | |
39 | 31 | public class InfoResource { |
40 | 32 | |
41 | 33 | @Inject |
... | ... | @@ -47,9 +39,9 @@ public class InfoResource { |
47 | 39 | @Inject |
48 | 40 | private SeiPortTypeProxy seiNativeService; |
49 | 41 | |
50 | - @Inject | |
42 | + @Inject | |
51 | 43 | @PropertiesInfo(file="config.properties", key="versao.sistema") |
52 | - public String versao; | |
44 | + private String versao; | |
53 | 45 | |
54 | 46 | @PersistenceContext(unitName = "sei_pu", type = PersistenceContextType.EXTENDED) |
55 | 47 | private EntityManager emMySQL; | ... | ... |