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

TomEE server: java.lang.ClassCastException: com.sun.proxy.$Proxy70 cannot be cast to xxx.class interface

I want to access either remote or local EJB which is deployed in TomEE server. My Client program is also deployed in the same. But when I look-up and cast it as interface it throws ClassCastException. Is there any particulate EJB path to look-up ?…
Nikhil soni
  • 121
  • 1
  • 1
  • 8
2
votes
3 answers

Use WebServiceContext outside WebService

In my Web service, I have: @WebService(serviceName = "myservice") public class ServiceName{ @Resource private WebServiceContext context; In a stateless class I want to use the same operation: @Stateless public class MakeHappen{ …
Goldbones
  • 1,407
  • 3
  • 21
  • 55
2
votes
2 answers

EJB and asynchronous processing

I need to execute some stuff asynchronously after a EJB method is called. This need seems to be fulfilled in EJB 3.1 but unfortunately we're not there yet and have to use 3.0 version. What would you suggest as the simplest way and are there…
yedd
  • 25
  • 1
  • 3
2
votes
1 answer

Global JSF exception handler doesn't catch all errors

I implemented an exception handler like described on this page: https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/ Sadly I still receive some errors which are not handled by this solution. Do…
ManuPanu
  • 217
  • 1
  • 3
  • 12
2
votes
0 answers

Remote Tomee Client cannot access EJB from JBOSS 7.1.1 server

To begin with I am a newbie to OpenEJB standards. So please forgive my lack of knowledge on the topic. I have a server application running on JBOSS 7.1.1 AS. I want to create a web client running on Tomee and be able to communicate with JBOSSS…
user4772933
  • 311
  • 3
  • 13
2
votes
2 answers

Why does not commit transaction of Requires_New?

I am working on SAP java application server with EJB 3.0 I want to database insert one by one. Because I have too much data and I have to divide data. So I made try test code and it did work but it did not work as I want. I want to create a new…
user2496352
2
votes
1 answer

Looking for Simplified Overview of EJB3

Hi I'm looking for a simplified overview of EJB3 components. I seem to understand most of the pieces of the puzzle, but can't quite get them to fit together in my brain as a full picture. I've developed numerous web applications (wars) that have…
sdoca
  • 7,832
  • 23
  • 70
  • 127
2
votes
1 answer

Is Reflection allowed within EJBs?

I am wondering, which portions of reflection are allowed to be used within EJBs (EJB3.x), which ones are discouraged to be used and which ones are forbidden. [EDIT] I am generally speaking about stuff like getMethod(), method.invoke() etc on the…
gorefest
  • 849
  • 8
  • 22
2
votes
2 answers

org.hibernate.hql.internal.ast.QuerySyntaxException

I am getting this error: Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: TblEmployee is not mapped [FROM TblEmployee] Caused by:…
GMan1973
  • 179
  • 3
  • 5
  • 26
2
votes
3 answers

How to lookup EJB into WildFly server to a client

I would like to know how to look up a EJB located into a WildFly server from a remote client using JNDI. Here is what I use to initialize the context jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,…
jean-philippe
  • 23
  • 1
  • 5
2
votes
1 answer

Application vs Container authentication in EJB

I am fresher to EJB, working on a maintenance application that is using EJB2.0. I am just going through the application code and trying to understand it. It has got ejb-jar.xml with some session beans as shown below.
srk
  • 4,857
  • 12
  • 65
  • 109
2
votes
4 answers

How to provide business logic in spring in an remote server?

Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on Web Servers) or to Application desktop client or Mobile clients, the only way to accomplish the logic business(without EJB) in a remote server is through…
HenryOS
  • 119
  • 2
  • 8
2
votes
0 answers

Java : IllegalArgumentException in java.sql.Clob.getCharacterStream()

I'm working on a application which contains EJB modules(an ear) in a separate jboss 4.2 server(yeah.. it's old) and the fornt end modules(.war) in another jboss 4.2 instance. When a JDBC call is executed in and retrieving data from that result…
tharindu_DG
  • 8,900
  • 6
  • 52
  • 64
2
votes
2 answers

Security+Authentication+Authorization with Java EE 7

I am new to Java EE, so to learn Java EE (EJB+CDI+either Zkoss/JSF 2.0) I am trying to build a sample application. In this application I don't want to use any spring-security related stuff. I do want the Authentication+Authorization mix which is…
Bilbo Baggins
  • 2,899
  • 10
  • 52
  • 77
2
votes
0 answers

How do I specify the connection URL to connect to a JMS server?

For a JMS Point-to-Point producer, as per page 203 of Java EE 7 with GlassFish 4 Application Server, how is a remote lookup performed? I want to specify an ip address, 192.168.1.3, for the this producer: output, with JNDI properties for a CORBA…
Thufir
  • 8,216
  • 28
  • 125
  • 273