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
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,117
- 5
- 31
- 59
2
votes
1 answer
How to deploy EJB module as a module under MODULES folder in wildfly AS
I have a jar containing EJBs say EJBTest.jar and have deployed it as a module under modules folder along with module.xmlin wildfly application server. In the WAR which is the consumer of EJBs, I have added a reference to the EJB module

sridhar
- 1,117
- 5
- 31
- 59
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
- 1
- 10
2
votes
2 answers
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
- 27,221
- 105
- 339
- 599
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
- 124,154
- 35
- 280
- 359
2
votes
2 answers
WildFly: EJB invocations from a remote client
I was trying to lookup and call an EJB deployed as EAR in WildFly. I have tried different ways.
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); …

Tapas Bose
- 28,796
- 74
- 215
- 331
1
vote
1 answer
Lookup Remote EJBs on Liberty (wlp-javaee8.21.0.0.8)
As the title says. I have some EJBs in an EAR and I have a client jar providing remote methods to a JSF app also sitting in liberty (different server/machine). The client jar tries to access the remote EJBs via lookup.
This is breaking my heart for…

CalleWirsch
- 95
- 9
1
vote
1 answer
how to pause and restart an automatic ejb
I'm studying the EJB and testing automatic function by create a simple EJB like below.
I hope it can run automatically once it's deployed.
import javax.ejb.Schedule;
import javax.ejb.Stateless;
@Stateless
public class TestAuto…

kk luo
- 549
- 1
- 9
- 22
1
vote
1 answer
Is there a EJB3 verifier in WildFly like the one provided by JBoss org.jboss.verifier.Main?
I have migrated ejb2.x/Jboss 4.2.3 to EJB3.2/WildFly17. Jboss 4.2.3 has a verifier that can be used in the ant script to validate the ejb app.jar.
Like this

Nemo
- 143
- 1
- 12
1
vote
0 answers
JAXRS: read an array of FormParams via POST web service
I've an angular client that send me an array of object (sorting conditions):
sort[0][field]: modified
sort[0][dir]: asc
sort[1][field]: name
sort[1][dir]: desc
My web service interface is:
@POST
@Path("{pathcode}/grid")
@Produces(value =…

Daniele Licitra
- 1,520
- 21
- 45
1
vote
1 answer
NamingException loading bean with JNDI
I have two stateless EJBs that implement an interface. To load an implementation I'm using InitialContext but it always fails with NamingException.
The interface
package app.ejb.login;
public interface UserValidation {
public static final int…

ps0604
- 1,227
- 23
- 133
- 330
1
vote
0 answers
EJB Interceptor. Catch exception if transaction is not committed
I have an EJB Interceptor which should catch and process all exception which was thrown in transaction:
public class ExceptionsInterceptor {
@AroundInvoke
public Object intercept(final InvocationContext invocationContext) throws Exception {
try…

aggredi
- 406
- 3
- 11
1
vote
1 answer
Create Three Tier Application using Maven
I want to create a multi-layer java project using maven as follows:
PresentationLayer-GUIModule (top most layer for jsp/jsf pages)
PresentationLayer-GatewayModule (topmost layer for web services)
BusinessLayer-ServiceModule (middle layer)…

Hosein Aqajani
- 1,553
- 4
- 26
- 46
1
vote
0 answers
unable to invoke server2 EJB via server1
I want to invoke server2's EJB via server1, but still received by server 1.
Look at my cliet code & screenshot
test1 & test2 is ok
test3 is fail
Does anyone know how to do? thanks
Server:wildfly-10.1.0.Final
EJB:3.2
Screenshot
Test Code
Session…

Loren Chang
- 11
- 2
1
vote
2 answers
Arquillian Integration with WildFly 10
Can anyone please guide me on how to use Arquillian with WildFly 10. I have recently migrated my application from JBoss 7 to WildFly 10. Arquillian used to work with JBoss 7, but the same configuration is not working on WildFly 10.
I am able to…

Purnendu Rath
- 45
- 1
- 11