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.
Questions tagged [ejb-3.2]
92 questions
6
votes
2 answers
Avoid timer overlapping in EJB schedule running inside wildfly
I have an EJB timer schedule in a singleton EJB running inside a Wildfly 10.10:
@Singleton
@Startup
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
public class MySingletonBean {
public method() {
//uses synchronization…

Duloren
- 2,395
- 1
- 25
- 36
5
votes
2 answers
Nested Transaction and EJBContext's setRollbackOnly()
I am reading the Transaction Management of Java EE 7 and I get confused by the concept of nested transaction and the functionality of EJBContext#setRollbackOnly().
Say I have two Session Beans, Bean1Impl and Bean2Impl and their signatures…

Tapas Bose
- 28,796
- 74
- 215
- 331
4
votes
1 answer
Let a ear deployment programmatically mark itself as failed
I've been looking for a way to programmatically let a deployment stop itself.
For our use case we deploy several ear's, where one is the most important one, and the others depend on it. We made certain that the important ear deploys first, and the…

Wouter
- 1,290
- 2
- 16
- 24
3
votes
1 answer
The best way to integrate EJB (JNDI) and CDI
Currently we have a deployment architecture were a bunch of data oriented services are exposed via RMI to business services. Both types (the data oriented services and the business services) are stateless session beans. Each data-service interface…

Sjaak
- 3,602
- 17
- 29
3
votes
2 answers
Why Java EE Timers are not clustering?
I am working with Java EE EJB timers and Wildfly 8.2.1 server with oracle database.When run a scheduler in my application at cluster environment not working fine,even though selected Transaction Isolation: TRANSACTION_SERIALIZABLE in Wildfly.I am…

Nagaraju Thalluri
- 96
- 8
3
votes
1 answer
The client must not make any assumptions regarding the internal implementation
the full sentence taken from the EJB3.2 specifications:
When interacting with a reference to the no-interface view, the client
must not make any assumptions regarding the internal implementation of
the reference, such as any instance-specific…

ken
- 471
- 9
- 19
2
votes
0 answers
Configuring an Interceptor in EJB3.2 deployment descriptor
I would like to configure an Interceptor only in one Maven profile, so the obvious solution would be replacing the current annotation-based interceptor binding with a deployment descriptor based solution. However I cannot get this to work. Let's…

meskobalazs
- 15,741
- 2
- 40
- 63
2
votes
5 answers
How to validate String of Email in JPA entity
I have a column in database of length 512.
It is going to contain multiple email address separated by ";".
How can I validate its respective variable in the entity so that all the email address are valid.
List will not work as I need to persist it…

Rosey Khatun
- 89
- 2
- 9
2
votes
1 answer
WFLYCTL0180: Services with missing/unavailable dependencies and reflective information error
17:15:41,160 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ETS_EAR.ear"
was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {
…

Khatri
- 61
- 1
- 3
2
votes
0 answers
Permission issue in calling EJB from MDB
We have recently switched from JAAS to Keycloak. Application is JavaEE application with EJBs & MDBs.
Set keycloak login module in WildFly to propagate user from wen to EJB & it worked.
But facing issue when an EJB is called from MDB. There is…

Valsaraj Viswanathan
- 1,473
- 5
- 28
- 51
2
votes
0 answers
"Unexpected invocation state 0" error in Wildfly
I created a small example that demonstrates the error.
A stateful bean holds a list as its state and injects a stateless bean:
@Stateful
@RequestScoped
public class StatefulBean {
@Inject
StatelessBean slsb;
@Getter // public list…

Mark
- 2,167
- 4
- 32
- 64
2
votes
0 answers
Stateless Session Beans Identity with @EJB and @Inject
I have been looking into section 3.4.7.2 of the EJB3.2 specifications lately und done some tests.
The specifications:
@EJB Cart cart1;
@EJB Cart cart2;
… if (cart1.equals(cart1)) { //
this test must return true ...}
… if …

ken
- 471
- 9
- 19
2
votes
2 answers
Wildfly remote EJB calls through outbound connection through loadbalancer
We have some Wildfly servers running in standalone mode.
Every single instance provides a bunch of stateless services that can be accessed through ejb remote calls (http-remoting) from some webapplications.
The outbound connection of the…

Marcus Schulz
- 123
- 1
- 6
2
votes
2 answers
Are activation specs required for message-driven beans?
I have a non-JMS MDB that I'm installing into a Websphere Liberty server.
package mdb.test;
import javax.ejb.MessageDriven;
@MessageDriven()
public class TheMDB implements MyOwnListener {
public TheMDB() {}
@Override
public void…

Ben Cox
- 1,393
- 10
- 28
2
votes
1 answer
Is Reflection allowed within EJBs?
I am wondering, which portions of reflection are allowed to be used within EJBs (EJB3.x), which ones are discouraged to be used and which ones are forbidden.
[EDIT] I am generally speaking about stuff like getMethod(), method.invoke() etc on the…

gorefest
- 849
- 8
- 22