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
0
votes
1 answer
Understanding EJB Architecture and Implementation
I am a beginner in the Jakarta EE world.
I am going through a Jakarta EE module at university and I am struggling to find information that properly answers my question.
I feel like it is one of those things that is so simple, straight forward &…

ptmp_727
- 65
- 9
0
votes
0 answers
Are Optional ElementCollections Possible In Hibernate
I've noticed some strange behavior in one of my applications. I have a ManyToOne relationship between two classes, Frame and Brand. As far as the database is concerned, the relationship is unidirectional. Each Frame in the table has a brand_id…

pbuchheit
- 1,371
- 1
- 20
- 47
0
votes
1 answer
Assuming a CLI or Swing interface client, how is a remote Bean accessed through Liberty
I want to access to remote EJB running on Liberty Server from a swing Client like this :
Object found = new InitialContext().lookup(
"corbaloc:iiop:localhost:2809#ejb/ear/ejb.jar/package/Bean#com.package.BeanRemote);
I'm getting that error…

dada
- 3
- 1
0
votes
1 answer
EJB Injection When Beans Share an Interface
I'm working on updating some legacy code for a jboss application and I've run into a bit of a jam. I have two ejb beans, PersonBean and ClientBean. ClientBean is responsible for handling client specific services. ClientBean gets injected with an…

pbuchheit
- 1,371
- 1
- 20
- 47
0
votes
0 answers
Reading messages from IBM MQ asynchronously
I want to read multiple messages from IBM MQ asynchronously . I am just using MessageDrivenBean configurations like below.
import java.io.IOException;
import java.util.ArrayList;
import javax.ejb.ActivationConfigProperty;
import…

C2D
- 29
- 1
- 6
0
votes
1 answer
Is it possible to invoke a MessageDrivenBean remotely directly through a @Remote interface?
I am currently learning the basics of EJB 2+. In the book Java EE 7 The Big Picture, it was mentioned:
Session beans are generally accessed through a remote interface (though, as we shall see, there are cases where a remote interface is not…

Rui
- 3,454
- 6
- 37
- 70
0
votes
1 answer
Injecting a Stateless EJB into another Stateless and using PersistenceContext
With JEE 5 / EJB 3.0 life of Java developers became much more easier. Later, influenced by Spring and CDI, similar approaches were also adopted in JEE.
Now, I hope I am doing it right, but just to be sure:
I have several Stateless EJBs, which all…

Alex Mi
- 1,409
- 2
- 21
- 35
0
votes
0 answers
In an Ejb project java classes form src/main/java can't see classes from src/test/java
Am getting an error that says
Description Resource Path Location Type
The import com.esprit.puzzled.test cannot be resolved TutorialImpl.java /Puzzled/src/main/java/com/esprit/puzzled/services/tutorial line 14 Java Problem
Note that…

Louay Belgasmy
- 1
- 2
0
votes
1 answer
Keycloak integration with CDI in REST API JAXRS
We have a widlfy REST API jaxrs and we want to secure it with keycloak.
The problem is the integration with @SecurityDomain("keycloak") is working only with an EJB entry-point. it is ignored on class with no @Stateless annotation
The issue is the…

cyril
- 872
- 6
- 29
0
votes
1 answer
How to assign a native query result to a Pojo Class
I am using JPA with hibernate in my project.
I came to a query where I need to join 6 tables.
This will give 20 columns as a result.
My Entity classes are:
InvoiceAccount
AssetAgreement
Asset
LineItem
ProductAgreement
Product
My pojo class is…

izaz
- 11
- 2
- 7
0
votes
3 answers
remove logs from Production Environment
How to implement log4j such that some desired loggers are not shown at PRODUCTION environment, but will show at test and acceptance environment.
Is it possible to do by using log4j only?

izaz
- 11
- 2
- 7
0
votes
2 answers
Remote EJB binding is not shown in the log - Websphere Liberty
I am trying to call a remote EJB in a Liberty Profile server following the Redbook example (IBM WebSphere Application Server Liberty Profile Guide for Developers, 5.2.3 Developing applications using remote EJB).
All compiles and deploys with no…

Nikeshh Vijayabaskaran
- 213
- 2
- 6
- 18
0
votes
1 answer
EAP 7: EJB state not replicated between stateful session beans in cluster mode
I have running two EAP 7.0 instances, both with standalone-full-ha.xml
One is started with:
/opt/jboss-eap-7.0/bin/standalone.sh -Djboss.node.name=node1 -Djboss.server.base.dir=/opt/node1 -Djboss.messaging.cluster.password=message -c…

onderbewustzijn
- 935
- 7
- 32
0
votes
1 answer
Spring Context in an EJB Module
I'm currently in the making of an EJB Module, which could not be complete without persistence.
My initial instinct led me to use Spring Boot, since it has some wild implementations of how one could use JPA and to be honest, I'm kinda…

László Stahorszki
- 1,102
- 7
- 23
0
votes
1 answer
Lazy Loading with EJB + JPA + Jersey
I have the following working without FetchType.LAZY:
@Entity
public class Test {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String text;
@ManyToOne
@JoinColumn(name = "lazy_id")
…

Eduardo
- 277
- 1
- 6
- 17