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

Using OpenSessionInViewInterceptor to avoid LazyInitializationException

First I need to acknowledge the fact that I'm new to EJB, JPA and Spring, so many of the things I believe as true could be wrong. I'm building an EJB application where there's an stateless session bean used to retrieve many JPA (Hibernate) entities.…
Doppelganger
  • 20,114
  • 8
  • 31
  • 29
2
votes
2 answers

CDI producer for EJB

I'm trying to use a POJO as CDI producer for injecting the right EJB but I get org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308. This is my producer POJO public class STGatewayUtilProducer { @Produces @Chosen public…
Marco Stramezzi
  • 2,143
  • 4
  • 17
  • 37
2
votes
1 answer

Java RMI : how InitialContext.lookup() works

In a distributed client server application, i am using java RMI to invoke server side method from client machine. At server side EJB is being used and application server is Glassfish. I have a SampleFacade Class at server end which is a java session…
choity186
  • 23
  • 4
2
votes
1 answer

No active transaction in EJB @Schedule method

I have an EJB with a @Schedule marked method, that persists an entity to a database. Within this method, when I'm calling EntityManager.flush() after persist(), I'm getting javax.persistence.TransactionRequiredException: No transaction is currently…
Ultranium
  • 332
  • 2
  • 19
2
votes
2 answers

JBoss EAP 6 cannot find JARs in APP-INF/lib

I am doing a migration from Weblogic to JBoss EAP 6.4 but I am having a problem deploying to and starting the JBoss server. My EAR structure is as follows: .EAR | |---APP-INF | |---lib | |---[many .jar files] | |---META-INF | …
Tanvir
  • 1,453
  • 2
  • 16
  • 32
2
votes
3 answers

How to call multiple DAO functions in a transaction

I'm looking for a way to call multiple DAO functions in a transaction but I am NOT using spring or any such framework. What we actually have is a Database api type .jar which gets initialized with the used datasource. What I want to achieve is have…
PentaKon
  • 4,139
  • 5
  • 43
  • 80
2
votes
1 answer

How to avoid stalled DB connections with TomEE's JDBC connection pool?

I'm creating a JSF web app on TomEE1.7.2 (over tomcat7, javaEE6). I have JDBC to mysql5.6.23 connection setting which look like below, and it is working just good, for only some hours. My data access super class: public class BaseDao { …
Hirofumi Okino
  • 975
  • 1
  • 10
  • 22
2
votes
2 answers

Stateless EJB implements interface injection failed

Wildfly 8.2.0 I have a Stateless EJB and an interface. @Local @Stateless public class Bean implements IBean{ ... } @Local public interface IBean { ... } But I get a WELD Error. If Bean doesn't implement the interface there is no errors. According…
Tony
  • 2,266
  • 4
  • 33
  • 54
2
votes
0 answers

Caching EJB Home object after looking up

I have a swing application that invokes stateless EJBs (EJB 2.1) which deployed on Weblogic 10.3.6 . The stateless EJB is secured via JAAS. Web app client get remote interface by JNDI lookup. To improve performance, I want to cache the EJBHome so…
Nessaj Nguyen
  • 163
  • 1
  • 6
  • 16
2
votes
1 answer

how to configure pom.xml to working with ear project as dependency

I`m new here and i trying to configure maven to working with ear project as dependency of other war project: To imaginate my idea i include the following image I wonder how to configure poms.xml of this two war projects (doggle and expert) to get…
Michał Ziembiński
  • 1,124
  • 2
  • 10
  • 31
2
votes
1 answer

Passing Runtime (Meta)Data To Producer Method in CDI

I am maintaining a multi-tenant application in which special metadata on requests (headers, params) identify specific tenants. Each tenant has custom configurations in the system that override some defaults. The configurations come from a…
Sayo Oladeji
  • 741
  • 4
  • 15
  • 28
2
votes
1 answer

Clustered database timers in WildFly

Applying the following configuration in standalone-full-ha.xml.
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
2 answers

case-insensitive search in EJB QL

This looks really simple and I can't believe I haven't found a solution myself. I have a bean named PersonBean, which has a name. Now I want to write a finder method that takes a string and looks for people with that string in their name,…
phunehehe
  • 8,618
  • 7
  • 49
  • 79
2
votes
2 answers

TomEE not resolving ManagerExecutorService

Iam porting an application from GlassFish to Apache TomEE. But during the deployment on TomEE (plume Edition), maven keeps throwing this error: SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start…
Theodore
  • 182
  • 16
2
votes
2 answers

How to Send Object to EJB through Remote Interface

Hello i have a Web Application Which has Class Library which with remote interfaces, EJB module with beans and Struts 2 web application. Whenever i try to send a custom object to EJB through Remote Interface i get following Exception.…