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

Unable to invoke remote EJB on JBoss EAP 6.2

when I try to access an EJB running in JBoss EAP 6.2 from my remote client, I get the following exception: Caused by: java.lang.NoSuchMethodError:…
Z.I.J
  • 1,157
  • 16
  • 36
2
votes
1 answer

EJB cannot find Java class library

Hello i tried to develop a EJB Application using Java class library project that contains a remote interface for the session bean. I used this tutorial When i try to run my EJB i get an exception saying java.lang.IllegalArgumentException: Specified…
2
votes
2 answers

Error injecting entity manager with Wicket/JPA

I have an app using Wicket for the presentation layer with CDI/Weld, JPA 2.0, EJB 3.1 etc. (Java EE 6) deployed on GlassFish v3.0.1. When I try to inject an EJB into a wicket page using @EJB I get the following error:…
kgrad
  • 4,672
  • 7
  • 36
  • 57
2
votes
1 answer

What happens to the connection returned to pool before transaction is fixed?

we are using stateless session beans inside Glassfish. And I have a following question. Our methods support transactions by default, that is, the transaction is started at business method start point and is committed (or rollbacked) at the exit…
SPIRiT_1984
  • 2,717
  • 3
  • 29
  • 46
2
votes
1 answer

How to check time taken to convert java object to json in rest services

We are using jersey rest service and exposed a service, the service taking long time for a record of ( around 5 MB ) to get from service . To figure out where is the performance bottleneck I want to know how much time it is taking when converting…
Arvind
  • 1,207
  • 6
  • 27
  • 55
2
votes
1 answer

Netbeans EJB cannot add dependency

Its Strange i create new EJB Project and when i add any dependency using maven it always throws this exception saying that library not found while i have checked that the location is present and so is the jar…
Umer Kiani
  • 3,783
  • 5
  • 36
  • 63
2
votes
1 answer

Can't get @RunAs to work in an EJB

This is a follow-up to User context for @Startup EJB on websphere I have the following scenario: EJB 1: @WebService( ... ) @Local(SomeLocalServiceType.class) @Stateless @RolesAllowed("SomeRole") public class SomeServiceBean implements…
Thomas Stets
  • 3,015
  • 4
  • 17
  • 29
2
votes
1 answer

Injecting stateful bean into stateless

I have read that @Stateful bean (SFSB) should be never injected into @Stateless bean (SLSB). But what is the correct way to achieve the following? @Stateless public class FirstEJB { @EJB private SecondEJB second; public void…
2
votes
1 answer

Can an injectee know its own InjectionPoint?

Is there any way an injectee(EJB, say) know its own injection point? @Stateless public class SomeService { @PostConstruct private void constructed() { // do post construction job // according to the injectionPoint } …
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
2
votes
2 answers

Deploying Wildfly EJB via mvn wildfly:deploy not putting jar into local repo. Ejb client can't see ejb dependency

I'm trying to run an example from "Java EE 7 Development with Wildfly". First I've deployed ticket-agency-ejb itself via mvn wildfly:deploy, but it didn't install the jar into local repo, so I did mvn install even though it isn't mentioned in the…
Nazerke
  • 2,098
  • 7
  • 37
  • 57
2
votes
2 answers

Hanging forever when executing a shell command (Java)

The offending block of code is below. The code almost always works, but sometimes it hangs forever. The application is an EJB timer bean. Actually, it has only hung once and I can't reproduce it. It's worked without any problems in production for…
jthg
  • 2,790
  • 3
  • 29
  • 32
2
votes
1 answer

jBoss EAR-EJB jndi java:global working, java:app NameNotFoundException

We have a EAR containing some jars, an EJB module and a WAR module. We want to obtain a class with JNDI InitialContext.lookup from, and to the same EJB module. In the jBoss console we can see the java:global with the application, the module and all…
XaviGG
  • 171
  • 2
  • 19
2
votes
0 answers

@Asynchronous causes loss of transaction in calling thread

I am experiencing problems with @Asynchronous methods, I have to make some external http requests whilst in the middle of a processing job, I want to do these async so they do not delay the main processing job. I have found that when the main job is…
DaveB
  • 2,953
  • 7
  • 38
  • 60
2
votes
1 answer

Error Deploying Java 8 Jars(EJB) With Lambdas - glassfish server 4.1

When deploying an EJB jar using the compatability=v2 flag, and that jar contains another JAR which has a class that uses Java 8 lambda expressions, the deployment fails and I get the following errors in the log: use annotations (@Stateless) Failed…
Oracio
  • 123
  • 8
2
votes
2 answers

The simplest way to convert EJB 2.0 project to EJB 3.0

What is the simplest way to convert EJB 2.0 (WebLogic 8.1) project to EJB 3.0 (OAS or WebLogic etc)? I found just this article "Converting an EJB 2.0 Entity Bean to EJB 3.0", which could automate this process, but forced to do too much manual…
cubanacan
  • 644
  • 1
  • 9
  • 26