Questions tagged [ejb-3.1]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.1 programming model.

JSR 318: Enterprise JavaBeans, Version 3.1

Enterprise JavaBeans is an architecture for the development and deployment of component-based business applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and multi-user secure.

The Enterprise JavaBeans 3.0 specification focused on bringing ease-of-use to the EJB API. The purpose of the Enterprise JavaBeans 3.1 specification is to further simplify the EJB architecture by reducing its complexity from the developer's point of view, while also adding new functionality in response to the needs of the community.

The focus will be on the core session bean and message-driven bean component models and their client API. Although the Java Persistence API was developed within EJB 3.0, it will evolve under a separate JSR rather than within EJB 3.1.

1103 questions
0
votes
2 answers

Infrequent NoSuchEJBException: EJB has been removed after session timeout, browser refresh

I have a facelet that refreshes the browser window 30 seconds after session timeout e.g.
Patrick Garner
  • 3,201
  • 6
  • 39
  • 58
0
votes
1 answer

Spring Security + JSR 250 + EJB 3.1 not working

My JEE6 webapp (mainly CDI, EJB 3.1 and JSF 2) uses Spring Security 3, but not Spring dependency injection or MVC. I implemented a Spring AuthenticationProvider to handle the login. During login, I add roles to my users depending on some custom…
Sebi
  • 8,323
  • 6
  • 48
  • 76
0
votes
1 answer

Can't install glassfish server -EJB 3.1- on eclipse Indigo

I am facing problem with server adapter of glassfish. Whenever I download the adapter I can't use it as I cannot see it in the wizard. I download it using "download additional server adapter", but even when it is successfully downloaded, I still…
user1021743
  • 477
  • 4
  • 16
0
votes
1 answer

ejb-jar.xml: ejb-client.jar or ejb-module.jar

Sometimes, configurations or declarations need to be done in the EJB-deployment descriptor, the ejb-jar.xml file. When there is no ejb-client jar-file, ejb-jar.xml is located in the META-INF of the module: Module-root: ---> META-INF -…
arthur
  • 3,245
  • 4
  • 25
  • 34
0
votes
1 answer

Advantage of EJB transactions over spring transactions

What exactly are the real benefits of EJB transaction management over Spring transaction management
Chaitanya Gudala
  • 305
  • 1
  • 3
  • 22
0
votes
4 answers

JPA Insert and Update

I am learning EJB3.1 and JPA2 I am doing following things for Insert and Update INSERT Common com = new Common(); com.setKeyData(keyData); com.setKeyValue("0001"); em.persist(com); UPDATE Common com = em.find(Common.class,…
user1433804
  • 657
  • 5
  • 17
  • 31
0
votes
2 answers

Java EE 6, EJB 3.1, JPA 2.0 - error in inserting record in database

I am trying to insert a record in the database (using Java EE 6, EJB 3.1, JPA 2.0). I am getting an error that accountTypeId field is null, but i have set it up as autogenerate. Can anyone please suggest what am I doing wrong? Following is the…
user427969
  • 3,836
  • 6
  • 50
  • 75
0
votes
1 answer

Passing parameters between Request Scoped Managed Beans in JSF + EJB 3.1

Our problem is a very basic, simple implementation of editing the database using JSF + EJB. Keeping things short: two separate XHTML views, use two separate Managed Beans @RequestScope. WebuserListBean and EditWebuserBean, and with @ManagedProperty…
Atais
  • 10,857
  • 6
  • 71
  • 111
0
votes
2 answers

JPQL @NamedQuery with Entities or Ids?

Sorry if duplicated. Is it possible or recommended for business layer to using objects instead of ids? SELECT c FROM Child AS c WHERE c.parent = :parent public List list(final Parent parent) { // does parent must be managed? // how…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

ejb3 jboss7 arguments

I'm using JBoss 7.1.1 and I have to pass an argument between two session beans. Is it possible to pass arguments by reference from a local stateful session bean to a local stateless one? Thanks!
Maverik
  • 179
  • 1
  • 1
  • 9
0
votes
1 answer

EJB3.1 Providing property value

Maybe this question could be duplicated. I just can't find any good search words. How can I provide some development property value to SLSBs? @LocalBean @Stateless class ClouldBean { public void doSomethingWithUsernameAndPassowrd() { //…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

Flush automatically call persist

I just have a small query on whether flush involves automatically persisting all previous entity relationships. Here is what I mean: shFood.setCuisines(cuisineSelection); entityManager.flush(); Why does the entityManager automatically persist my…
Qin Zhengquan
  • 467
  • 1
  • 8
  • 20
0
votes
1 answer

EJB Transaction between @LocalBean's methods

I have a @Stateless @LocalBean which looks like this @LocalBean @Stateless class TokenBean { public Token signOn() { <--------+ /* Do some JPA things. */ | } | …
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
2 answers

Accessing EJB in WAR from remote standalone client

I have an EJB accessed remotely from a Swing client as well as locally by servlet/JSP. I want to switch the packaging for my EJB from a EJB/WAR/EAR to a EJB/WAR since it is simpler to work with. What do I mean by simpler? In Eclipse, for example, I…
Raylite3
  • 837
  • 2
  • 11
  • 22
0
votes
1 answer

In a system using EJB 3.1 and JPA 2.0, where should one cache CriteriaQuery objects?

The JPA 2.0 specification mentions in section 6.9 that CriteriaQuery objects are serializable, and hence may outlive any open EntityManagers or EntityManagerFactory instances: CriteriaQuery objects must be serializable. A persistence vendor is…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127