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

Using a Singleton to create a default administrative account

I never used the @Singleton new feature of JavaEE 6 and i want to give it a try. I was thinking in creating s Singleton to just hold a password that will allow the app adiministrator(The person that knows the password),to access some content of the…
javing
  • 12,307
  • 35
  • 138
  • 211
0
votes
1 answer

Response times within applications WebSphere Process Server goes down after a while working

I see a degradation in response times within myapplications. After a server restart, response times are acceptable. However, after some time, which depends on the workload on the system, the response times degrade and the server has to be restarted…
0
votes
1 answer

NoClassDefFoundError on JBoss5

Recently have been experiencing a strange problem on our JBoss5. After running our app for a while, the clients who call the EJB's start Throwing NoClassDefFoundError on some classes. After a restart, all is fine again for a while until other…
Gerrie
  • 3,873
  • 4
  • 23
  • 26
0
votes
1 answer

EJB 3 Entities multiple columns same object reference problem

I have an entity A that have 3 attributes having reference to another entity B. From a relational POV, this is fine because I may have 3 different ids from table B stored as different columns in table A. To provide further clarification, my table A…
Jaizen
  • 121
  • 1
  • 11
0
votes
1 answer

How can I get in Glassfish 3 a log of what is injected and how?

Question title sums it up. However, to be a little more clear. I have EJBs scattered in my application, and I sometimes get exceptions like the following…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
0
votes
1 answer

Sending an object to a EJB becomes null when being created with CGLIB

I am creating a proxy to an object (A SERIALIZABLE object) in the client layer, and send this object to a EJB (Using EJB 3.0 on Weblogic 10.3.4 server). In the EJB, the parameter is null! I made sure that the object I am sending is not null in the…
Ran
  • 657
  • 2
  • 13
  • 29
0
votes
1 answer

JBoss Messaging Queue Stuck, with Remote Interface and MDB Consumer

I am trying to diagnose and fix what is likely an environmental problem. We have dev, SI, and production servers, and they have been setup the same for several years. One of the environments has stopped working for a particular JBM Queue, and I…
kg.
  • 633
  • 1
  • 5
  • 17
0
votes
2 answers

Entity manager error on the server?

Hi I have developed my java application on glassfish server with EJB 3.0 persistance. On my local machine the application was running fine and was persisting the data perfectly. However, When I deployed it on the linux server, whenever I persist any…
fareed
  • 3,034
  • 6
  • 37
  • 65
0
votes
3 answers

JPA excesive querys for mapping an entity

I have the following entity: @Name("estructuraOrganica") @Entity @Table(name = "srht_estructuras_organicas") public class EstructuraOrganica extends EntidadBasica implements Auditable, Desplegable { private…
Pablo
  • 3,433
  • 7
  • 44
  • 62
0
votes
1 answer

Creating a generic base entity which can be extended for each client

I'm using Eclipselink and I'm trying figure out the best way to create a base class for my entity. For example, I have a User entity and I would like to provide an extended User class for some clients, but I would like to not have to rewrite my…
Mark Robinson
  • 3,135
  • 1
  • 22
  • 37
0
votes
2 answers

How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

Good day, I have to use EJB 3.0, JPA, Hibernate and Struts 2 in one application, but I have no idea how to do it! Are any other MVC frameworks better integrated with EJB than Struts 2? Thank you for the answer.
Dennis
  • 1
  • 1
  • 1
0
votes
0 answers

Weblogic class loading problem with shared JPA entities and Entity Manager

What I want to do Let's say I have 3 modules: A, B and C. In module A I want to have JPA entities, DAOs and services used by both B and C. Modules B and C are EJBs which expose SOAP web services. Both services are packaged in their own EARs, let's…
Master_ex
  • 789
  • 6
  • 12
0
votes
1 answer

Query on an entity, where joined with another that has a specific value?

I have a database with 3 tables. LANGUAGE id ARTICLE -id ARTICLE_DETAIL -id -articleId -languageId I need to get an article from the database, but only if it has article details in a specific language. Today, I have the query in native MySQL…
Bjørn Stenfeldt
  • 1,432
  • 1
  • 18
  • 25
0
votes
1 answer

@UniqueConstraints failing on update

I have an Entity class in which I put uniqueconstraint annotation @Table(uniqueConstraints={@UniqueConstraint(columnNames={"staffRecord_id", "defaultLabel_id","company_id","keyCode"})}) public class AllowanceDeduction implements…
Chinedu
  • 103
  • 2
  • 12
0
votes
1 answer

Date Query in JPA

How To write Query in JPA base on month selection. E.g. There is column effective_date in the table which contains dates values shown below records 1 May 1 Jun 2 July 1 Aug and if current_date is 8 July then it show return 2 July Record How…
Vicky
  • 9,515
  • 16
  • 71
  • 88