2,336 questions
0
votes
0
answers
67
views
How to suppress redundant update in Hibernate when insert + update happen in same transaction (trigger firing twice)?
In my Jakarta EE application (EJB + JPA with Hibernate), I have the following scenario:
A Contact entity is created (INSERT).
Immediately after creation, for some business reason, the same entity is ...
0
votes
0
answers
31
views
Migration of GlassFish 3.1.1 to Jboss 7.4
Glass Fish Server Configurations:
Glass Fish Version - 3.1.1,
EJB Version - 2.0,
Derby Version - 10.6,
JDK - 7
Migrating to Jboss
Jboss eap Version - 7.4,
EJB Version - 3.0,
Derby version - 10.14,
JDK ...
0
votes
1
answer
82
views
java.sql.SQLException: DSRA9350E: Operation Connection.commit is not allowed during a global transaction
I came across an old project using JPA with MSSQL server running on Websphere Liberty. In the persistence.xml file there is a persistent unit with the following declaration:
<persistence version=&...
0
votes
1
answer
215
views
What happened to SimpleRemoteStatelessSessionProxyFactoryBean?
I have an old application that uses SimpleRemoteStatelessSessionProxyFactoryBean from spring-context to call a remote EJB 3.0. After updating to the latest version (Spring 6.1.5 and Spring Boot 3.2.4) ...
0
votes
1
answer
278
views
WebSphere Liberty BASE Remote EJB call failed in JDK 17
Here I'm trying to initiate a remote ejb call between two JavaEE applications which are deployed in two separate VMs, When I initiate remote ejb lookup from the primary JavaEE application following ...
0
votes
0
answers
191
views
How to change EJB Module Version, if ejb-jar.xml is deleted to migrate module from 2.x to 3.0
Errors on project build
Trying to migrate EJB project from 2.0 to 3.0, but got the above errors as EJB Project is referring to ejb2.0 version even Using annotations instead ejb-jar.xml in beans.
Other ...
0
votes
0
answers
385
views
Can SpringBeanAutowiringInterceptor be removed from the code if we create the bean manually and inject it?
I am trying to upgrade spring from 4 to 5 in one of our project due to security reasons. In one class, we are using SpringBeanAutowiringInterceptor as an interceptor. I went through the documentation, ...
0
votes
0
answers
33
views
EJB client jar causes TOMEE9 to deploy EJB
In the TOMEE 9 console log, I am seeing EJB3 beans being deployed on a my Web application. This web application has an EJB client jar in its class path. But it seems wrong for this web app to deployed ...
0
votes
0
answers
90
views
Class Cast Exception between Spring Bean and EJB 3 - Jboss7
I have an Spring Controller with a EJB injected. I can inject this EJB using spring proxy:
<jee:local-slsb id="procedimentRepositoryBean"
jndi-name="java:global/...
0
votes
1
answer
145
views
In EJB 3.0 , PostConstruct not called
I want to have a scheduled job run once every hour, the scheduled job is defined in EJB 3.0 stateless session bean (the bean class is annotated with @Stateless). I am restricted to EJB 3.0 so I cannot ...
0
votes
2
answers
124
views
Deploying ejb on Jakarta ee9.1 results into error
I am making a sample application using EJB jakarta ee9.1 glassfish server 6.2.5 and java17 but while running I am seeing following exception as soon as an Ejb is added.
If you use EJB component ...
1
vote
2
answers
13k
views
ERROR: Can not deserialize instance of java.lang.String out of START_OBJECT token
I'm using Jackson version 2.7.4 + EJB 3.0 with WebSphere 9.0. The classe has an attribute String date as below:
Class:
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@...
3
votes
1
answer
2k
views
JNDI lookup of EJB with new InitialContext each time?
We use EJB3 and JBOSS application Server in our Application. I have a Bean lookup utility method where its a generic method written to lookup stateless EJB Beans by JNDI name:
public class BeanFactory ...
0
votes
1
answer
178
views
Exception in thread "P=69052:O=0:CT" java.lang.ClassCastException: org.omg.stub.java.rmi._Remote_Stub
I'm using was 9.0, EJB 3.0 and I written a RMI class to call the remote's EJB. When I run, the console shows me this error:
Exception in thread "P=69052:O=0:CT" java.lang.ClassCastException:...
2
votes
0
answers
132
views
EJB remote injection can return object by reference
we add to wildfly
on section
subsystem xmlns="urn:jboss:domain:ejb3:2.0"
in-vm-remote-interface-invocation pass-by-value="false"
top level deployment with a META-INF/jboss-ejb-...