Questions tagged [ejb-3.2]

the ejb 3.2 api belongs to the java enterprise edition 7.0 standard. It brings non-persistent timer service and asynchronous beans into the EJB-lite profile and transactional lifecycle callbacks for stateful session beans. It also makes a number of pre EJB 2.1 standards optional such as CMP/BMP beans and the EJBQL, rpc webservice endpoints are also made optional.

92 questions
1
vote
2 answers

weblogic 12cR2 annoying log when using EJB and JAXWS at the same bean

I have a Java EE project (MyProject) which contains an EJB project (MyEJB) I created a session bean (Stateless) that is my web service class as well (ServiceAddTEST). The container is weblogic 12.2.1. Everything goes well but when I call the web…
Ali Abazari
  • 429
  • 4
  • 20
1
vote
0 answers

Wildfly 9 Stateless session bean webservice not showing up in Web Service Endpoints

I'm quite new to the Wildfly server. Currently I'm trying to expose a simple Stateless Session Bean as web service. I don't want to use the webModule to define servlet mappings for the web services beans. I want to keep that seperated. I just want…
Francesco Iannazzo
  • 596
  • 2
  • 11
  • 31
1
vote
1 answer

Java EE 7 EJB Security not working

I have a Java EE EAR Application running on wildfly 8.2,I am trying to implement Java EE declarative security to protect access to the EJB methods. Thus, I have added to the standalone.xml
Paullo
  • 2,038
  • 4
  • 25
  • 50
1
vote
1 answer

How do I select list of generic objects in abstract service using CriteriaQuery

Trying to take this method and optimize performance: public T getByPrimaryKey(PK id) { T entity = getEntityManager().find(getEntityClass(), id); if(entity != null) { preProcessEntity(entity); } fireEvent(entity,…
Chris Manning
  • 499
  • 5
  • 14
1
vote
2 answers

Is it permitted to use @Stateful and @javax.faces.view.ViewScoped together?

My understanding is that @Stateful @ConversationScoped is allowed, and is normal usage. With the new JSF 2.2 ViewScoped (javax.faces.view.ViewScoped) annotation, which is documented to be fully compatible with CDI scope annotations, does this…
0
votes
1 answer

Is it important to delete deleted from code timers from jboss_ejb_timer. EJB3. POSTGRES

I removed timer from code, but after app started, the timer is still exists in jboss_ejb_timer. It does not start, but maybe it is important to delete it from jboss_ejb_timer too.
0
votes
0 answers

Cannot implement Java remote interface to communicate with EJB application running on Websphere Liberty

I want to expose EJB's running on Websphere Liberty via a remote interface. I have created a test EJB app and a test client. My client seems to connect to Liberty, but the bean is not being created. Below is the error. Mar 14, 2023 7:51:47 AM…
James
  • 1
  • 1
0
votes
0 answers

EJB Schedule issue on WebLogic

I have an EJB with a method that has an @schedule attribute configured to run at 5 PM every evening. The EJB is deployed on WebLogic server that gets restarted every morning at 4 AM. Problem: The EJB method sendSummaryEmailForReqs() gets triggered…
Sirish V
  • 930
  • 2
  • 12
  • 24
0
votes
0 answers

@Transactional on EJB beans

Too simple, this is my setup : Jakarta : 9.1 Liberty Application Server : 22.0.0.10 server.xml :
mah454
  • 1,571
  • 15
  • 38
0
votes
1 answer

HTTP Request from EJB Bean

EJB Spec says you shouldn't manage threads. I have seen Bean code that sends remote requests and loops with a Thread.sleep waiting for a response to reduce CPU usage. From what I understand this breaks spec. Does simply calling the logic from a…
runtim23
  • 38
  • 5
0
votes
0 answers

Not rollback in multi-tenancy with hibernate and JakartaEE

I followed this link to test multi-tenancy with JakartaEE 8, Payara web-server 5.2021.9, Hibernate 5.4.32 and MariaDb 10.5. When I persist and throw exception, my testing entity is not rollback(still persisted in database) even using…
0
votes
1 answer

Does adding @TransactionAttribute(REQUIRED_NEW) in a method which is invoked from a Stateless Bean(which already has REQUIRED) work in EJB 3.1?

As per Spec, EJB doesn't support nested transactions, so what I wanted to know is, assume there are 2 classes (Parent and Child). Parent call is a stateless session bean and Child is a plain vanilla java service (not an EJB). Since EJB's by default…
Shan
  • 521
  • 2
  • 8
  • 28
0
votes
0 answers

Injection causes WELD-001408: Unsatisfied dependencies

I have a java EE web application in which a particular injection causes following error: WELD-001408: Unsatisfied dependencies for type GenericDAO with qualifiers @Default MyBean @Stateless public class MyBean extends CustomBean
Stephan
  • 696
  • 15
  • 37
0
votes
0 answers

Wildfly JavaEE 8 - Double initialization of Singleton EJB

I'm building a JavaEE 8 application based on Wildfly archetype ord.wildfly.archetype:wildfly-jakarta-ear-archetype:23.0.0.Final and deplying it on Wildfly 23.0.2.Final. This creates 4 projects test |---test-ear |---test-ejb |---test-web in which…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36
0
votes
0 answers

Error finding remote EJB with Spring Boot war app on Wildfly

I would ultimately like to create a RESTful API that supports EJBs 3+, traditional HTTP requests, and eventually JPA/Hibernate. I am using Eclipse version 2021-03, running a JBOSS Wildfly server, created a remote EJB using an interface (similar to…
Andrew
  • 1
  • 1
  • 1