Questions tagged as 'ejb'

1
answer

Competition problem in java web application

Good evening guys, See the following code: Controller @WebServlet("/testConcurrency") public class TestConcurrency extends HttpServlet { private static final long serialVersionUID = -6124392524678396101L; @EJB(name="bs/UsuarioBS...
asked by 21.09.2014 / 02:26
1
answer

Error javax.naming.NoInitialContextException - console application

I'm trying to make a simple EJB, I followed some tutorials, I looked at the Wildfly sample code, and even then, I'm facing a mistake. Could anyone help me? The error: ejb:/Adder//Addition!com.labs.AdditionRemote javax.naming.NoInitialCon...
asked by 02.02.2018 / 21:51
1
answer

What's the difference between Sessions Beans and Message DriveBeans?

There are two components responsible for business logic in the EJB architecture, the Session Beans and Message DriveBeans. I would like to know the difference of both and some example of its use.     
asked by 04.12.2015 / 14:27
1
answer

How to change the maven life cycle?

I have an EJB project and would like to run the test after deploying my ear. I have a test in the ejb layer, which needs to access the ejbstubs inside the server (was), before I did this with ant, but I'm changing to maven, but I'm not able to c...
asked by 12.11.2015 / 17:10
1
answer

How to intercept only the public methods of a managed bean?

If you have a managed bean (annotation @ManagedBean), how could you intercept only the public methods of this bean? The motivation for this would be as follows, suppose you have a ControllerBean bean that can be accessed from an xhtml page....
asked by 09.06.2014 / 03:44
0
answers

Inject EJB in spring bean

I'm working on a Java EE + Primefaces + JPA project with EJB. In the authentication part I decided to use Spring Security, but I'm having trouble getting the EJB inside the Spring controller. I found some tutorials, but I did not succeed. If som...
asked by 11.07.2017 / 19:25
1
answer

Convert EJB and WEB modules to Maven

My project consists of three modules: EAR, EJB and WEB. I know that Maven goes far beyond dependency control, but to start I just want to use it to control dependencies. I tried to convert the EJB and WEB modules, some jars were not found, I hav...
asked by 16.09.2016 / 04:45
1
answer

Is it safe to entrust the security of an application to Spring Security?

I am developing a reasonably simple yet fairly distributed system that involves including use of EJBs and other agents, which requires both Authentication and Authorization. The system will be composed initially by Spring + Hibernate + JSF +...
asked by 02.06.2015 / 18:53
1
answer

java.lang.ClassNotFoundException: Could not load requested class: com.mysql.jdbc.Driver

I have a Dynamic Web Project in Eclipse and I have been constantly receiving this error: java.lang.ClassNotFoundException: could not load requested class: com.mysql.jdbc.Driver. My persistence.xml file: <persistence-unit name="casos">...
asked by 24.01.2018 / 21:53
2
answers

Convert DTO to Entity Java

I have the following problem, I am trying to create a method that converts DTO's to Entity's and vice versa until the moment I arrived at the following method that converts perfectly when they are compatible attributes String to String ,...
asked by 17.03.2015 / 15:59