Questions tagged [ejb]

Enterprise JavaBeans (EJB) is a managed, server-side component architecture for modular construction of enterprise applications. The EJB specification is one of several [Java] APIs in the [Java EE] specification.

Enterprise JavaBeans (EJB) is a managed, component architecture for modular construction of enterprise applications which runs on an . The EJB specification is one of several APIs in the specification.

See also and

Tutorials

JBoss 4 EJB 3 Tutorial

JBoss 5 EJB 3 Tutorial

Video Tutorials

EJB Video Training

Reference :

Wikipedia

Oracle

6693 questions
2
votes
1 answer

Failed to open channel for context EJBReceiverContext

When I run the ejb3 remote client the service deployed in the server, WildFly8.1.0 Final I get the expected results. But now I am trying to benchmark this and when I run the client through the JMH @Benchmark method it runs fine for but after some…
Isuru Gunawardana
  • 2,847
  • 6
  • 28
  • 60
2
votes
2 answers

EJB Interceptors and transaction lifecycle OR how to intercept a commit/failure event?

I have an EJB interceptor and I follow the BCE pattern suggested by Adam Bien, that is, all EJB calls on the boundary starts and finish a transaction which means there is no nested EJB calls (there might be nested CDI injected Bean calls though, but…
David Hofmann
  • 5,683
  • 12
  • 50
  • 78
2
votes
0 answers

Internal server error upon returning JPA entity with XML annotations

I have made a simple CRUD app for learning purposes that uses webservices (with jersey), EJBs and JPA (eclipse link + mysql). I've at first obviously made an entity class called User and tried to return it, after searching for it for example by ID…
2
votes
1 answer

JAVA EE Stateless EJB IllegalArgumentException: Can not set field

I'm heaving some trouble while learning ejb. All I want is write a simple app operatign on database. Here's my code: Servlet - Main.java package main; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import…
Charlie B
  • 303
  • 1
  • 4
  • 12
2
votes
1 answer

How to import only the interface of EJB3 into the client?

I have made a simple project to test the EJB3 implementation. Using maven I created into the project 3 modules respectively "MyEjb" the EJB, "MyWeb" the war, "MyWeb2" another war. The war module are the client of the EJB. The problem is that when I…
Andrea Catania
  • 1,361
  • 3
  • 21
  • 37
2
votes
1 answer

Glassfish 4 Acessing EJBs via Standalone Application

I am trying to access an EJB via JSE Standalone application. I was struggling a lot with JNDI Names not being found during lookup. After some research without any solution I found in the Glassfish server log after a deploy a message stating…
mrossini
  • 378
  • 3
  • 10
2
votes
1 answer

JavaEE @EJB vs @Resource

I would have a question concerning JavaEE Beans. I have developed a long time with Spring and Hibernate and now I change to JavaEE - so therefore sorry if it is a very simple question but currently I have no idea how to handle my problem. I have…
quma
  • 5,233
  • 26
  • 80
  • 146
2
votes
1 answer

Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long

i develop an application with swing i habe a database with few tables; these Tables are connected with foreign key When I try to run this application , i have the error; Exception in thread "AWT-EventQueue-0" javax.ejb.EJBException: EJB…
Doni
  • 23
  • 3
  • 5
2
votes
1 answer

Long running query via EJB 3.0 ,JPA

I need to run a long running query via a stateless EJB. statelessEjb.callLongRunningQuery(); I am using Weblogic and if the query is longer then 30 seconds it times out. I configured the Set XA Transaction Timeout to true and XA Transaction…
Cris
  • 4,947
  • 6
  • 44
  • 73
2
votes
0 answers

weblogic.transaction.RollbackException: setRollbackOnly called on transaction

Environment: Weblogic, Spring, Hibernate and EJB I have upgraded from hibernate 3 to 4. Am facing issue with exception propagation between layers. Like if my DAO method throw ‘StaleObjectStateException’, service method is throwing …
Raghu ram
  • 61
  • 1
  • 1
  • 6
2
votes
2 answers

How to use Hibernate as persistence provider in TomEE

I am facing an issue in using Hibernate 3.x with TomEE. Previously we were using Hibernate with tomcat 1.6 and when we changed the container to TomEE, Hibernate fails. TomEE by default uses OpenEJB's JPA as the persistence provider. Tried searching…
2
votes
1 answer

what benefits does using @stateless in JAX-RS offer in Java EE 6 and above?

I am going through the TicketMonster tutorial available with JBoss using Java EE 6. Here are a couple of REST service classes I found in this tutorial. @Path("/media") public class MediaService { @Inject private MediaManager mediaManager; …
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
2 answers

Can't contact EJB from remote machine

As title says, I can't contact my EJB from a distant machine. The client trying to contact the EJB-hosting machine works perfectly when used locally. The remote machine is on Windows XP SP3 (32 bits) with Java JRE 7_71. It's connected to the same…
Nino DELCEY
  • 652
  • 1
  • 9
  • 25
2
votes
1 answer

Bean-Managed Transaction and the org.hibernate.LazyInitializationException

After we migrate an application from JBoss 4 to JBoss 5 we are getting org.hibernate.LazyInitializationException when lazy loading is done using Bean-Managed Transaction (BMT) Session Beans. I know it is a known issue when it comes to Web…
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
2
votes
1 answer

EJB Queries with WHERE clause

I'm working on a JavaEE application with EJB and I have these two entities: @Entity public class Utente implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private int cod_utente; private String…
Ghost
  • 113
  • 4
  • 11
1 2 3
99
100