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
4 answers

Source Folder 'folder1' in project 'ProjectA' cannot output to distinct source folder 'folder2' in Eclipse

I am getting this error in some projects in my workspace. I have tried using Luna and Juno version of eclipse but there are errors is still in there in both versions of eclipse Content of .classpath file
anujspoddar
  • 73
  • 1
  • 1
  • 8
2
votes
1 answer

Best practices to develop a Shopping cart from scratch

I'm looking to develop a good shopping cart to my new store site. I have few ideas in my mind to start developing it... It will be a stateful session bean (ejb3). Object Oriented {ShoppingCart, ShoppingCartItem,ShoppingCartEvent, OrderHandler,…
Garis M Suero
  • 7,974
  • 7
  • 45
  • 68
2
votes
1 answer

java.lang.NoClassDefFoundError while calling RabbitMQ methods from ejb

I had written a custom ejb component with schedular attached to it. In the scheduled ejb method, I am calling the RabbitMQ methods to dequeue the messages. The whole thing works with in eclipse while debugging the individual java file. but the same…
Ramanan K
  • 33
  • 6
2
votes
2 answers

weblogic deployment InternalException : Transaction marked rollback or not expected transaction

I have an EAR application, and when i try to deploy it to my weblogic server, i get the following error: <[STANDBY] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1439994186702>
clapsus
  • 442
  • 6
  • 19
2
votes
1 answer

Using Spring to Access an EJB Across Clusters in WebSphere using Grails

I have spent the last few days attempting to integrate a Grails (version 1.3.2) application with an EJB 2.1 application that is deployed on WebSphere 6.1. Once our grails apps are in production, they will be deployed to WebSphere as well. The EJB…
chrislatimer
  • 3,560
  • 17
  • 19
2
votes
1 answer

How to deploy a jar to glassfish, which contains a main method?

I'm new to EJB. I have an ejb-jar file which contains, "Class1" and i deployed it to glassfish server. Now there is another jar file which contains only the following client file(it has a dependencey injection), so my problem is how should i…
Sameera Kumarasingha
  • 2,908
  • 3
  • 25
  • 41
2
votes
1 answer

Glassfish4 + EJB + Spring, deploy fails

I am upgrading an application from Java7 on Glassfish 3.1.2.2, to Java8 on Glassfish 4.1. The application is packaged as an ear file, containing a jar-file with remote EJBs and Spring beans, as well as a war-file with a couple of servlets and some…
Tobb
  • 11,850
  • 6
  • 52
  • 77
2
votes
0 answers

How to add the ear JNDI namespace to EJB2.x Beans?

In the project I am currently working at we have about 20 different EJB 2 JARs that are used across multiple (Swing-) clients. Example: customer-1.0.0.jar ^ ^ | | client-app-1 client-app-2 These…
Roland Schneider
  • 3,615
  • 3
  • 32
  • 43
2
votes
1 answer

JPA does not insert entity to database

I work with hibernate-jpa-2.1-api I have an EJB class for busines logic I have made an @RequestScopded EntityManager that is injected in the EJB and called in the save method, there is no error but even no entry in the database. The funny thing is…
simonC
  • 4,101
  • 10
  • 50
  • 78
2
votes
4 answers

Maven dependency entry for wildfly ejb standalone client

I'm writing a standalone client for an ejb application deployed to jboss wildfly 9.0.1.Final. The documentation I've reviewed suggests there is a readme file (readme-ejb-jms.txt) in the wildfly directory. This file contained the following…
John
  • 3,458
  • 4
  • 33
  • 54
2
votes
2 answers

Weld "Enclosing method not found" exception in an EJB JAR

Deploying an EJB Jar to WildFly 8.2.0 with CDI enabled (i.e. with a minimal beans.xml file) is leading to "Enclosing method not found" exceptions being thrown. There is nothing particularly useful in the logs to identify the source of the error. How…
Phyxx
  • 15,730
  • 13
  • 73
  • 112
2
votes
1 answer

Oracle weblogic 12c + local EJB lookup

I have a an ear file to be deployed on weblogic 12c. I have following project structure : 1) prop-application which is an .ear file 2) prop-service which is a .jar file 3) prop-framework which is a .jar file All are maven project. - prop-service…
shankar
  • 73
  • 6
2
votes
1 answer

Is it ok to have static final map in stateless ejb to save sate?

Stateless EJB's should not have non-final static fields that are used to save state because this does not work in distributed apps with more that one JVM. But if we have a static final Map in EJB to save a few parameters about our distributed…
Tomas
  • 1,212
  • 4
  • 15
  • 26
2
votes
0 answers

Arquillian: missing dependency error when injecting EJB with mappedName

I am writing an Arquillian test class that uses a factory class named WerkkatalogFactory (injected with @EJB, which in turn has a field named WerkkatalogRepositoryPort, the concrete implementation of which gets injected via the annotation…
2
votes
1 answer

Unit testing a class that relies on an EJB and UserTransaction

How do I write a unit test for a class that takes in an EJBContext object? i.e. public class MyProcessor { public MyProcessor (EJBContext ejbContext, SomePojo somePojo) { } ReturnObject saveMethod(InputObject inputObject){ …
Armando Perea
  • 499
  • 2
  • 6
  • 18