Questions tagged [ejb-3.0]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.0 programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 3.0 specification, use the [JPA] tag.

JSR 220: Enterprise JavaBeans 3.0

The Enterprise JavaBeans architecture is a component architecture for the development and deployment of component-based business applications.

The purpose of Enterprise JavaBeans (EJB) 3.0 is to improve the EJB architecture by reducing its complexity from the developer's point of view.

The goal of EJB 3.0 is to target ease of development, the main theme of the Java EE 5 platform release. EJB 3.0 is a major simplification over the APIs defined by the EJB 2.1 and earlier specifications. The simplified EJB 3.0 API allows developers to program EJB components as ordinary Java objects with ordinary Java business interfaces rather than as heavy weight components. Both component and client code are simplified, and the same tasks can be accomplished in a simpler way, with fewer lines of code. Because it is much simpler, EJB 3.0 is also much faster to learn to use than EJB 2.1.

2345 questions
0
votes
1 answer

Calling a Remote Bean vs Local Bean in App Server

Is there a noticeable amount of performance overhead in using Remote Bean Interface over using a Local Bean Interface? I would like to have every Client application connect to remote beans if there is little performance difference.
mainstringargs
  • 13,563
  • 35
  • 109
  • 174
0
votes
1 answer

Is it allowed to pass-through an ejb references to a used class of an ejb?

I have an EJB3 stateless session bean that uses some other ejbs to do its work. As I do not want to have all the logic in the ejb class itself, I created some classes which solve the problems. These classes are called by the ejb. To have the…
martin
  • 980
  • 1
  • 13
  • 28
0
votes
1 answer

Thread Safe Stateless Session Bean

I wonder what's the best practice to make a db update thread safe. I am calling a stateless session bean's public void addReservation(Reservation reservation) Before adding this reservation - I would like to check if there are still valid places…
Daniel
  • 754
  • 1
  • 11
  • 25
0
votes
1 answer

Failed to marshal EJB parameters?

I have added a new method to EJB3 and I get the following error. I know it is due to serializable issue, but I can't change the object because it is from external library org.apache.commons.beanutils. Furthermore, I use Wildfly 11 as server and…
itro
  • 7,006
  • 27
  • 78
  • 121
0
votes
0 answers

EJB3 Transaction REQUIRES_NEW not committed

I'm having some troubles with EJB3/JTA transaction and transaction isolation. I'm using WildFly 17. I have a stateless EJB method that call different method from another EJB. I was hopping that using REQUIRES_NEW each method will have it's own…
nico2324325
  • 60
  • 3
  • 11
0
votes
2 answers

Load external properties files into EJB 3 app running on WebLogic 11

Am researching the best way to load external properties files from and EJB 3 app whose EAR file is deployed to WebLogic. Was thinking about using an init servlet but I read somewhere that it would be too slow (e.g. my message handler might receive a…
PacificNW_Lover
  • 4,746
  • 31
  • 90
  • 144
0
votes
2 answers

Stateful EJB Lifecycle question

I have the following bean declaration: @Stateful @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) public class InteruptBean implements Interrupt { private boolean interrupt = false; @Override public boolean check() { return…
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84
0
votes
1 answer

Autogenerating EJB3.0 Entity Beans

Is there any ant task based tool using which, we can generate annotation based entity bean code (EJB3.X). IDE based tool is not prefreable Thanks in advance Vivek Shah
user674961
  • 51
  • 10
0
votes
1 answer

Transaction didnt rollback but committed using Hibernate JPA 2.0 and EJB3 with BMT

I have been studying about JPA 2 with hibernate on ejb3. So I made a sample class to test the functionalities. I have tried using BMT transactions but facing problem on transaction. From the sample code below, if something goes wrong in…
Quincy
  • 4,393
  • 3
  • 26
  • 40
0
votes
2 answers

ice:selectBooleanCheckBox within ice:dataTable

in order to select the data i want to remove i put a selectbooleanCheckbox in each row of my dataTable, But the checkbox doesn't change state and it's always set to false even if i select the row (it works fine outside the dataTable). here's my…
boskonovic
  • 125
  • 3
  • 16
0
votes
1 answer

Annotations args dynamic

Every Devlopers Nightmare is how well does his/her code fit into the final packaging.... problem with EJB3.x is usage of annotations with out being able to re compile the code with fresh set of args for the unit to pass thru integration test ex:…
N.S.Karthik
  • 485
  • 13
  • 29
0
votes
1 answer

NO EJB found in .war

I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity and the other @Stateless. I've deployed the war to Geronimo 2.2.1 with Tomcat 6 with a warning: Unresolved ejb reference "com.myconnection.servlet.AddServlet/srvc" in bean …
AR3Y35
  • 596
  • 2
  • 9
  • 26
0
votes
1 answer

EJB3 Interceptors for logging

In an MDB application, Can the EJB3 Interceptor be configured to log the Non bean class methods, which are inturn invoked by the bean method (OnMessage)? Thanks in advance
preeth
  • 1
  • 1
0
votes
1 answer

Client (Tomcat) calls Stateless Session Bean (JBoss), how to handle Client Identifier

we have the following setup: Tomcat (Web App) calls a service (Stateless Session Bean) in JBoss 5.1.0 EAP (EJB 3.0) JBoss has two different Persistence Contexts defined using two different databases The JBoss Service needs to know which client…
Marcel
  • 710
  • 8
  • 23
0
votes
2 answers

How to inject EJB3 session bean into another session bean with JBoss 6

I'm trying to migrate a project that I didn't participate in from JBoss 4 to JBoss 6. The project consists of an EJB 3 backend and a MyFaces 1.1.4 frontend. I have included the MyFaces 1.1.4 libraries in the JBoss 6 jsf deployer. I have a call from…
g_stam
  • 71
  • 2
  • 5