Questions tagged as 'ejb'

2
answers

Scope equivalent to @Stateless in CDI

I'm migrating the EJB annotations of my application to CDI and I have some questions: What is the scope equivalent to @Stateless of EJB in CDI? Would @ResquestScoped do equivalent behavior? I have tested using @State...
asked by 11.09.2017 / 00:44
1
answer

How to properly reuse business rules using EJBs?

I am refactoring a system where the greatest concern is to decrease the coupling and complexity of the various levels of inheritance, so the examples are illustrative. I have the entities Contrato , ContratoUso and ContratoAde...
asked by 11.12.2014 / 19:55
1
answer

Inject dependencies in the constructor of an EJB can cause modularization and performance problems?

I recently migrated from Spring to CDI + EJB, I tried to inject my dependencies directly into the builder just like I did in Spring and how it is supported by the CDI but in an EJB: @Stateless public class UserService { private UserDao u...
asked by 10.01.2015 / 20:55
1
answer

Transaction XA does not commit changes in procedures (intermittent)

I have an EJB Stateles that monitors files that fall into a folder. When a file arrives the same is handled, a receive event is registered in a central database and the file is inserted into a destination database: @Override @Asynchronous @Tra...
asked by 04.11.2014 / 17:54
0
answers

Enterprise Application Project problem with dependencies

I'm having trouble with an Enterprise Application Project. I'm using the wildfly-8.0.0.Beta1 server. The structure of my project is as follows: IhavealreadyputtheEJBProjectasadependencyintheWebProject. However I get the following war...
asked by 19.11.2014 / 11:34
0
answers

StackOverflowError - Infinite loop when deploying ear with ejb and demoiselle

When deploying an EAR with an EJB that depends on demoiselle-core , a StackOverflowError exception is thrown. When you try to create a ResourceBundle (ResourceBundleProducer.createNamed (ResourceBundleProducer.java:77)), the Beans class (...
asked by 29.01.2015 / 13:09
2
answers

Converter and Validator with CDI injection

Can anyone inject CDI or EJB in Converter or Validator in JSF 2.2? It was said that from 2.2 it would be possible but I'm not getting it. I've tried @EJB UserService userService and also @Inject UserService userService and both di...
asked by 30.06.2015 / 15:53
1
answer

Servlet Container (Tomcat) or Application Server?

Currently I'm developing a project that uses JSF, JPA, CDI and EJB. I have read in several places where they stated that Tomcat (Servlet Container) does not have support for these technologies, however I am currently using Tomcat and I use all o...
asked by 11.09.2017 / 19:54
2
answers

Business Exception is not in the ClientEJB classpath

I have the following situation: EJB PROJECT public BussinessException extends Exception {} public MyInterfaceImplementation implements MyInterface {} EJB PROJECT CLIENT public interface MyInterface { public void foo() throws B...
asked by 27.02.2014 / 00:00
2
answers

Specifying an EJB-client with Maven

I am not able to use the interfaces of an EJB-client generated by Maven. I have basically 2 separate projects with different functions. An EAR that contains EJB's and a WAR that uses EJB's interfaces to the EAR package. Following structure...
asked by 31.01.2014 / 16:55