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
1 answer

Genetrate "Event Scoped" beans out off the application scope

I am a newby with CDI and EJB and I've just created a jboss web application. Though, additionally, I also wanted this app to process rabbitmq messages. When processing these, I would like to do some persistence work, though, as I've been listening…
Pedro Rolo
  • 28,273
  • 12
  • 60
  • 94
0
votes
1 answer

RequestScoped Logging bean with Asynchronous calls

I have a logging bean where I log how long database calls and bean method calls take via interceptors. I have a bean that calls two @Asynchronous methods. Those two @Asynchronous methods call the database and are intercepted. When the logging bean…
0
votes
2 answers

Reference library not deployed as a module

How do I reference a library deployment that is not in the modules folder from an ear deployment in jboss 7? I have a common library (jar) deployed ok, and an ear deployment fails because it can't not locate the classes deployed in the common jar…
0
votes
1 answer

Injecting beans into filter packaged in a shared library

I've got an JavaEE6 app with following structure: app.ear META-INF application.xml lib commmon-server-lib.jar webapp1.war webapp2.war services-ejb.jar Both webapps have common-server-lib.jar in Class-Path entry of their…
Arek
  • 3,106
  • 3
  • 23
  • 32
0
votes
1 answer

Injecting ejb instances into the servlet, @EJB injects null - JBoss6

I am developing an enterprise app using ejb 3.1 and servlets 3.0 that runs in jboss 6.1.0. I deploy the jar and war as separate copies in the same jboss instance. I inject the ejb (remote interface instance) into the servlet using the…
vvra
  • 2,832
  • 5
  • 38
  • 82
0
votes
1 answer

Good way of managing database entity manager

Following recommendations given to me in this thread I am making my DAO accessors @Singleton, @Startup, @LocalBean My question is on the good way to implement the entityManager that is supposed to execute the various queries. Knowing that there are…
facewindu
  • 705
  • 3
  • 11
  • 31
0
votes
1 answer

Limiting left join hibernate

I have an entity called ServiceList that has set of productListOrders @Entity @Table(name="service_lists") public class ServiceList implements Serializable { private static final long serialVersionUID = 1L; private…
0
votes
1 answer

Strange behaviour in JPA2 entities

While observing some log entries, I observed a behaviour, I do not understand. I have recreated the scenario. The entity: @Entity public class SimpleEntity implements Serializable { private static final long serialVersionUID =…
Atul Acharya
  • 497
  • 2
  • 8
  • 21
0
votes
1 answer

Pattern to Log all interactions with a database by using interceptor on bean

I want to be able to log the amount of time any query takes on my db. I'm using MyBatis to query the DB. Currently, I have a stateless bean that has methods on it like select, update, etc. and clients of my bean (through @EJB annotation) call these…
0
votes
1 answer

Stateful Bean using @PreDestroy to close database connection

I have a Stateful bean that is used to make a couple database queries. I open the connection in the first method I call, but I only really want to close the connection after the EJB Client is really done with the Stateful bean. I thought that I…
0
votes
1 answer

What technology is the HTTP and UI level of application based on EJB architecture?

I read a lot about possible Java Web Development architectures (servlets+JSP, Spring MVC, Struts etc.). One of them is "plain Java EE 6" with EJB 3, in opposition to Spring/Spring MVC. I started to read book (EJB 3.1) and tutorials, but I can't find…
0
votes
1 answer

Editing text file dojo

I am learning dojo and a begginer. I would like to load and edit a text file from interface using Dojo. Please direct me which component in dojo would suffice this.
Skanda
  • 835
  • 1
  • 15
  • 32
0
votes
1 answer

Calling remote ejb 3

When I call a remote ejb method in jboss 4.3, with parameters in String and return in Object Serializable, the following problem occurs below: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested…
Tiago Braga
  • 83
  • 1
  • 7
0
votes
1 answer

avoid manually refresh entity to get Dtype from newly created entities

I have a some entities inheriting an AbstractEntity like below. @Entity @Inheritance(strategy = InheritanceType.JOINED) public abstract class AbstractEntity implements Serializable { private static final long serialVersionUID = 1L; @Id …
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
0
votes
1 answer

GlassFish clustering + EJB lookup

We have Glassfish cluster which has two instances. On this cluster one my EJB application is deployed and running. Now I have another EJB-Timer-application which I want to deploy on Glassfish server(domain) not on cluster then I want to access the…