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

Where is it all allowed to inject EJB?

Is it possible to inject an EJB into any class? And who performs the injection - EJB container or the container of the classes that contain EJB annotation?
gicig
  • 334
  • 3
  • 14
2
votes
1 answer

Quartz is not participating in EJB transactions (in CMT mode)

I integrated Quartz2.2.2 with my Java EE application which is running in Weblogic 12.1.2. I want to handle all JTA transactions with my container (Weblogic). But when an exception is occurred everything is rollbacked except for quartz transactions,…
Ali Abazari
  • 429
  • 4
  • 20
2
votes
0 answers

How to exclude WEB-INF/libs from being deployed in wildfly

I am installing a war file in a Wildfly. The package contains EJB and WS. The dependencies are located in myWar.war/WEB-INF/lib. My EJBs (annotated with @Stateless) located in myWar.war/WEB-INF/classes are correctly scanned by wildfly and…
loonis
  • 1,317
  • 16
  • 19
2
votes
1 answer

No EJBContainer provider available: no provider names had been found

I'm getting the following exception on running a test case, for my service class. javax.ejb.EJBException: No EJBContainer provider available: no provider names had been found. at…
Nidheesh
  • 4,390
  • 29
  • 87
  • 150
2
votes
0 answers

Why update query is running automatically in OpenJpa when I am running only select query

I have developed a rest web service which is using Open Jpa 2.1 , deployed in TomEE. My problem is , when I am running select query a update query is getting run in table i can see that in log. I have noticed when I Iterate through the result list…
Arvind
  • 1,207
  • 6
  • 27
  • 55
2
votes
1 answer

JPA and EJB - When do I need to use transaction?

I'm learning persistence in Java following some tutorial. I'm using Java EE 7 and Payara server. I noticed that each uses a different method for persistence. Examples: simple @Stateless public class BookServiceBean implements BookService { …
Marco
  • 169
  • 6
  • 19
2
votes
1 answer

Weblogic EJB deployement: classes in jar inside ear are not accessible

I'm trying to deploy an ear containing an ejb application into a weblogic 9.2 server. This ear is created using maven (itself using the ear ant task). Maven produces the following structure: myApp.ear - META-INF - application - MANIFEST.MF -…
Guillaume
  • 5,488
  • 11
  • 47
  • 83
2
votes
1 answer

Enterprise OSGi vs. EJB

i have an application server (JBoss) with some EJBs deployed. Now i must develop an OSGi application which i would like to reuse with my application server. I know that new application servers allows to deploy OSGi bundles in the application server…
Slava Schmidt
  • 296
  • 2
  • 12
2
votes
1 answer

unable to use interceptor binding interface with @Target({METHOD, TYPE}) for post construct methods?

I am trying to define a logger interceptor with an interceptor binding interface : @Inherited @InterceptorBinding @Retention(RUNTIME) @Target({METHOD, TYPE}) public @interface OperationLogger { @Nonbinding public String operationName()…
Hamid Adldoost
  • 149
  • 1
  • 15
2
votes
1 answer

JNDI No EJB receiver available for handling

I have a problem with my EJBTest. I have installed WildFly and configured user management and application management. I wrote an EJB 3.0 and deployed it: @Stateless @Remote(NewSessionBeanRemote.class) public class NewSessionBean implements…
reve
  • 99
  • 1
  • 9
2
votes
4 answers

EJB: custom authentication and authorisation

I’m trying to add my own authentication and authorisation to Java EE REST application. I’ve managed to get working version with JAX-RS’s SecurityContext, ContainerRequestFilter implementation (with JWT) and @RolesAllowed annotations on end-point…
Jakub Wojnowski
  • 139
  • 2
  • 8
2
votes
1 answer

How EJB 3.X Stateful session bean maintains state?

I am kind of new to EJB. I have understanding how HTTPSession is maintained (all cookies funda). All the resource in the internet says " Stateful Session Bean Maintenance session(remembers client). But I could not find answer to How Stateful…
Malatesh
  • 1,944
  • 6
  • 26
  • 39
2
votes
1 answer

Problem with WebServices using EJB. The error is: "..does not contain operation meta data.."

I got an error as I mentioned above. My application has EJB WebServices, developing with MyEclipse and running on jboss4.2.2.GA. I use Eclipse's Web Services Explorer to invoke a WSDL operation. When I enter the parameters for the wsdl and click Go…
javatar
  • 4,542
  • 14
  • 50
  • 67
2
votes
0 answers

Jboss 4.2.0 GA Cluster can not work

I'm new to Jboss and EJB. I'm trying to form a Jboss cluster with 2 instances and connect the cluster from tomcat, all the Jboss instances and tomcat run on one machine. The problem is the 2 instances of Jboss can form a cluster, but tomcat…
Maxwell
  • 21
  • 2
2
votes
1 answer

Remote EJB call vs Local EJB call performance in same JVM

I was trying to find out if there is any difference when I am calling a service through its local interface / remote interface in performance within the same JVM. Based on this…
erik.c
  • 1,342
  • 2
  • 15
  • 27