Questions tagged [ejb-3.0]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 3.0 programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 3.0 specification, use the [JPA] tag.

JSR 220: Enterprise JavaBeans 3.0

The Enterprise JavaBeans architecture is a component architecture for the development and deployment of component-based business applications.

The purpose of Enterprise JavaBeans (EJB) 3.0 is to improve the EJB architecture by reducing its complexity from the developer's point of view.

The goal of EJB 3.0 is to target ease of development, the main theme of the Java EE 5 platform release. EJB 3.0 is a major simplification over the APIs defined by the EJB 2.1 and earlier specifications. The simplified EJB 3.0 API allows developers to program EJB components as ordinary Java objects with ordinary Java business interfaces rather than as heavy weight components. Both component and client code are simplified, and the same tasks can be accomplished in a simpler way, with fewer lines of code. Because it is much simpler, EJB 3.0 is also much faster to learn to use than EJB 2.1.

2345 questions
0
votes
1 answer

Where and how is the EJB3 method hash calculated?

I have two Tomcat 6 instances which both call EJBs on a remote JBoss 5 server. With the same client code deployed on both Tomcats, I get a NullPointerException from the application server when one invokes an EJB method, while on the other it works…
Rich
  • 15,602
  • 15
  • 79
  • 126
0
votes
1 answer

ejb-3.0 customized exception

My ejb3 application running on JBOSS6 already has a customized Exception handler "Ejbexception.java" which extends Exception class I want to use the same to trap Exceptions with some number and send back the same to the Client Code for handling…
N.S.Karthik
  • 485
  • 13
  • 29
0
votes
1 answer

jpql Join query

i have an association table called MenuPrevilege between 2 tables called Menu and Previlege. In order to get all menus of a specific previlege i created a named query in the Menu entity: @Entity @NamedQueries( { @NamedQuery(name =…
boskonovic
  • 125
  • 3
  • 16
0
votes
1 answer

ejb-jar.xml Tags Documentation

I am looking to add an interceptor class to an EJB. According to my understanding I need to add a few tags to my ejb-jar.xml file to intercept all incoming requests. Is there any documentation out there that can give me a full list of different tags…
mcb
  • 43
  • 1
  • 1
  • 6
0
votes
1 answer

Problem in converting an application from BMT to CMT

I have an application which is using weblogic server 10.3 and ejb 3.0 and also Toplink for ORM. Currently the transactions are using UnitOfWork.commit() for committing a particular action stated in the EJB remote component interface such as…
EJBHunter
  • 1
  • 1
0
votes
1 answer

Glassfish throws error on deploying the EJB

I am trying to deploy the EJB on glassfish, but when I deploy - am being thrown an exception Exception while deploying the app [EnterpriseApplication4]|#] Exception during lifecycle processing java.io.IOException: org.xml.sax.SAXParseException;…
Abhishek
  • 77
  • 1
  • 9
0
votes
2 answers

HIbernate and CMT

Lately I decided to implement in my project CMT transactions (jBoss5, Hibernate, jta postgres datasource). Everything is working fine except Hibernate.initialize() in my entities. It works in EJB beans but when trying to invoke initialize in entity…
Dogrizz
  • 161
  • 1
  • 1
  • 8
0
votes
1 answer

Cannot deploy ear package when there is to many web modules inside

I've created ear app on payara server. There is an ejb package and some web modules. Everything was fine till I added a new web module. I have an error message that says in my EJB jar there is no EJB class which is not true. When I have less than…
Bogus
  • 283
  • 1
  • 2
  • 13
0
votes
3 answers

How can I select the local interface for an EJB?

Say I have the following EJB (using ejb3): @Stateless(name="Queries") @Remote(Queries.class) @Local(Queries.class) public final class QueriesEJB implements Queries { ... } The class is available through both a local and a remote interface. How…
johnstok
  • 96,212
  • 12
  • 54
  • 76
0
votes
0 answers

While calling an ejb method along with javax.jms.Message object getting below error NonSerializable

We are using the MessageListener method onMeassage(javax.jms.Message msg) to call later ejb method as shown below sample but its showing error java.io.NotSerializableException. This was a source code migration done from weblogic to JBOSS and it was…
Vik
  • 1
  • 1
0
votes
2 answers

Can't deploy Maven jar (MDB) on Jboss 6

I am using jboss6, message driven bean, hibernate and maven2 in my application when i try to compile my mdb using maven2 and deploy on jboss6 i get the following error: Failed to create Resource MessageBean.jar - cause: java.lang.Exception:Failed…
0
votes
1 answer

EJB3 eclipseLink on JBOSS EAP6 with POSTGRES no insert in database

I recovered a project that I migrate from MYSQL to POSTGRES and under JBOSS EAP6 6.4.22. When in my form I try to insert a new record, I have no error message and the insert is not performed in POSTGRES, but the sequence which serves as primary key…
pcouas
  • 31
  • 1
  • 5
0
votes
1 answer

Problem to persist child entity in EJB

My entity bean named Stock contain @OneToMany(fetch=FetchType.LAZY,cascade=CascadeType.ALL) @JoinColumn(name="stockid") private List stockSizeList = new ArrayList(); My StockSize entity bean contain one field stockid from…
chetan
  • 3,175
  • 20
  • 72
  • 113
0
votes
0 answers

EntityManager is not getting injected by @PersistenceContext - NullPointerException

I'm new to EJB/ Java EE, trying to do an example referring this tutorial. I've deployed the ojdbc8.jar to JBOSS and created a JNDI/datasources, I couldn't succeed in doing it manually updating standalone.xml, module and all, however from server logs…
0
votes
1 answer

what is the concurrency implication of ejb3 injection in servlet?

i want to contrast ejb3 injection with the jndi lookup method, does injection bind 1 particular instance of proxy to the servlet ?? If so , then in a clustered environment such tight runtime binding could lead to inefficiencies .
redzedi
  • 1,957
  • 21
  • 31