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.

87 questions
4
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
  • 1,455
  • 1
  • 16
  • 24
4
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
  • 25,780
  • 71
  • 202
  • 317
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…
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
  • 461
  • 8
  • 19
3
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,193
  • 2
  • 13
  • 21
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
  • 14,510
  • 2
  • 33
  • 55
2
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
  • 2,458
  • 12
  • 21
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,027
  • 3
  • 22
  • 43
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
  • 461
  • 8
  • 19
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,164
  • 11
  • 23
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
  • 739
  • 6
  • 19
2
votes
0 answers

How can a service MBean depend on singleton stateless session bean using jboss-service.xml in wildfly 8

I am trying to provide a service mbean a singleton stateless session bean by configuring in jboss-service.xmlusing in wildfly AS 8 but getting the below error: ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread)…
sridhar
  • 1,077
  • 4
  • 28
  • 52
2
votes
1 answer

how to configure @localbinding and @remoteBinding in wildfly

We are migrating from JBOSS6 to wildfly8.2 and as wildfly support EJB3.2 and EJB3.2 does not support @LocalBinding / @RemoteBinding ,so how will I do the same in wildfly using standalone.xml / ejb-jar.xml / any other configuration. I tried JBoss:…
hitts
  • 31
  • 10
2
votes
1 answer

Exposing remote EJBs as CDI beans

Given below an example of a CDI managed bean. import javax.ejb.EJB; import javax.inject.Named; import javax.faces.view.ViewScoped; @Named @ViewScoped public class ZoneManagedBean implements Serializable { @EJB private ZoneBeanRemote…
Tiny
  • 24,933
  • 92
  • 299
  • 571
2
votes
1 answer

Is it acceptable to access the file system in EJB?

Is it acceptable to use types from the java.io and java.nio packages to access the file system and manipulate files in EJB?
cassiomolin
  • 101,346
  • 24
  • 214
  • 283
1
2 3 4 5 6