Questions tagged as 'ejb'

1
answer

Inject EJB into controller

I'm with a JEE application based on Servlets and EJB 3.1. I want to inject the EJBs by annotation. From the Servlet itself I can do it, but if I do it through another class (a Controller) it does not inject it. Let me explain by example: I ha...
asked by 28.06.2018 / 15:08
1
answer

How to invoke EJB from a remote server to another server .. using WILDFLY 10 and JSP?

Currently I develop a web application in JSP with WILDFLY 10. Currently my application is divided into modules but I deploy it with the same EAR. My idea is to divide the application into several modules, an EAR that is a remote ejb which han...
asked by 14.06.2016 / 15:49
1
answer

EJB Statefull does not preserve the state if it is called from different Servlets?

A Stateful EJB: package ejb; import javax.ejb.Init; import javax.ejb.Remove; import javax.ejb.Stateful; @Stateful public class Contador implements ContadorRemote { private int cantidad; @Init public void initialize(){...
asked by 27.10.2016 / 13:28
3
answers

What is and what is the @PostConstruct in java beans?

In a project / code I'm encountering this @PostConstruct tag and I do not really understand what works? Someone can explain to me what their function or purpose is. I would appreciate it very much.     
asked by 05.06.2017 / 19:17
2
answers

Problem with query JPQL + JPA + JSF + EJB

@Override public Usuario iniciarSesion(Usuario us){ Usuario usuario = null; String consulta; try { consulta = "FROM usuario u WHERE u.usuario = ?1 and u.password =?2"; Query query = em.createQuery(consulta);...
asked by 25.10.2016 / 10:53
1
answer

Error 500 for NullPointerException when executing 'client.jsp'

This is the jsp file that is giving the error. client.jsp <%@page import="pe.edu.sise.ejbbeans.ClienteFacadeLocal"%> <%@page import="pe.edu.sise.entities.Cliente"%> <%@page import="java.util.List"%> <%@page import="pe...
asked by 07.09.2016 / 09:39
0
answers

Error creating maven project EJB Module in Netbeans 8.2

Good afternoon community When you try to create a new maven project of type EJB Module , you can not download the required archetype even if you try to download it from maven repository . The netbeans shows me the following error:  ...
asked by 20.12.2016 / 22:18
0
answers

Use env entries from an EJB

I am using the Twitter4J library to use the Twitter API. I'm using this library in an EJB without status like this: @Stateless public class TwitterSearchBean implements TwitterSearchBeanLocal { @Resource(name = "TWITTER_OAUTH_CON...
asked by 20.10.2016 / 23:47
0
answers

Failed to get Remote Object (GlassFish, EJB)

I am working with a web project (maven), and adding by means of dependencies to my pom.xml file another maven project to use all its classes ... What I intend to do, is to show in my web project, a page that shows a list of clients, for...
asked by 09.08.2016 / 20:22
0
answers

Does not update JAVA REST API data with Jersey

I have mounted a API in jersey , create a class that has the methods > REST and it is working, input data from the client POSTMAN where GET , POST , PUT , and DELETE work, send POST or PUT are executed correctly, but after havin...
asked by 19.04.2016 / 21:03