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,11 +5,7 @@ import static br.gov.ans.integracao.sei.utils.Util.setPaginacaoQuery; | ||
5 | 5 | ||
6 | import java.util.List; | 6 | import java.util.List; |
7 | 7 | ||
8 | -import javax.ejb.Stateful; | ||
9 | -import javax.ejb.TransactionManagement; | ||
10 | -import javax.ejb.TransactionManagementType; | ||
11 | import javax.inject.Inject; | 8 | import javax.inject.Inject; |
12 | -import javax.inject.Named; | ||
13 | import javax.persistence.EntityManager; | 9 | import javax.persistence.EntityManager; |
14 | import javax.persistence.PersistenceContext; | 10 | import javax.persistence.PersistenceContext; |
15 | import javax.persistence.PersistenceContextType; | 11 | import javax.persistence.PersistenceContextType; |
@@ -31,11 +27,7 @@ import br.gov.ans.integracao.sei.utils.Constantes; | @@ -31,11 +27,7 @@ import br.gov.ans.integracao.sei.utils.Constantes; | ||
31 | import br.gov.ans.modelo.LogIntegracaoSistemica; | 27 | import br.gov.ans.modelo.LogIntegracaoSistemica; |
32 | import br.gov.ans.utils.MessageUtils; | 28 | import br.gov.ans.utils.MessageUtils; |
33 | 29 | ||
34 | - | ||
35 | -@Named | ||
36 | @Path("/info") | 30 | @Path("/info") |
37 | -@Stateful | ||
38 | -@TransactionManagement(TransactionManagementType.BEAN) | ||
39 | public class InfoResource { | 31 | public class InfoResource { |
40 | 32 | ||
41 | @Inject | 33 | @Inject |
@@ -47,9 +39,9 @@ public class InfoResource { | @@ -47,9 +39,9 @@ public class InfoResource { | ||
47 | @Inject | 39 | @Inject |
48 | private SeiPortTypeProxy seiNativeService; | 40 | private SeiPortTypeProxy seiNativeService; |
49 | 41 | ||
50 | - @Inject | 42 | + @Inject |
51 | @PropertiesInfo(file="config.properties", key="versao.sistema") | 43 | @PropertiesInfo(file="config.properties", key="versao.sistema") |
52 | - public String versao; | 44 | + private String versao; |
53 | 45 | ||
54 | @PersistenceContext(unitName = "sei_pu", type = PersistenceContextType.EXTENDED) | 46 | @PersistenceContext(unitName = "sei_pu", type = PersistenceContextType.EXTENDED) |
55 | private EntityManager emMySQL; | 47 | private EntityManager emMySQL; |