ejb-3.0 Questions

6

Solved

Could someone please explain to me what the main differences are between JPA and Hibernate? Where to use Hibernate ? Where to use JPA? Why not entity bean?
Danielledaniels asked 24/6, 2010 at 10:8

2

Solved

I was thinking how could i save time on looking up remote ejb reference through jndi. I had an application that needed to work very fast, but it also had to call remote ejb which slowed it down. S...
Boater asked 22/6, 2010 at 10:54

4

Solved

I have understood that if I use EJB in Spring context, I get all the same benefits as if I was using it in "pure" EJB3 environment, is this true? I have googled but can't find a definitive, clear a...
Schumann asked 1/6, 2010 at 13:21

7

Solved

On the Tomcat FAQ it says: "Tomcat is not an EJB server. Tomcat is not a full J2EE server." But if I: use Spring to supply an application context annotate my entities with JPA annotations (and u...
Nanji asked 7/6, 2010 at 20:5

2

Solved

There are some good explanations of EJB Transaction Attributes (and annotations) out there, for example, OpenEJB's. But sometimes when I try to cover this with someone who hasn't worked with many ...
Soave asked 18/11, 2009 at 22:18

2

Solved

I have a terrible problem that hopefully has a very simple answer. I am running out of memory when I perform a basic If I have code like this: MyEntity myEntity; for (Object id: someIdList) { my...
Polard asked 2/6, 2010 at 21:45

1

Solved

I am writing an application that's sole purpose in life is to do CRUD operations for maintaining records in database. There are relationships between some of the tables/entities. Most examples I've...
Citizenship asked 31/5, 2010 at 22:35

3

I'm hoping someone can help me - I'm using JBoss 5.1 and MQ Series 7 in an EJB / JMS based application. I have several message driven beans in my application, each listening on an MQ Series message...
Scaler asked 24/8, 2009 at 14:54

1

I'm new to Java Annotation. I know how to create custom annotation but I don't know how to process that Annotation to generate the dynamic code just like ejb 3.0 and hibernate does. I read some art...
Carolanncarole asked 18/5, 2010 at 16:54

3

Solved

I have been reading about JPA and EJB3 and would like to confirm that my understanding of their relationship is correct. Here's what I think I know... JPA is a specification that has been imple...
Mitchellmitchem asked 18/5, 2010 at 16:27

1

Solved

I'm experimenting with EJB3 I would like to inject a stateful session bean into a servlet, so that each user that hits the servlet would obtain a new bean. Obviously, I can't let the bean be an i...
Doerrer asked 14/5, 2010 at 10:39

1

Solved

I never used stateful EJBs. I understand that a stateful EJB can be useful with a java client. But i wonder: in which case to use them on a web application? And how? Should we put these stateful ...
Banket asked 11/5, 2010 at 14:1

1

Solved

I'm working on a maven project which uses seam 2.2.0, hibernate 3.5.0-CR-2 as JPA provider, DB2 as database server and Websphere 7 as application server. Now I'm facing de following problem: In m...
Jackdaw asked 5/5, 2010 at 16:31

2

Solved

EJBs seem to be loaded lazily - whenever accessed. However, I want to initialize them eagerly - i.e. whenever the container starts-up. How is this achieved (in JBoss in particular) This topic giv...
Picco asked 25/4, 2010 at 9:11

4

Solved

I'm just implementing a JavaEE assignment I was given on an interview. I have some prior experience with EJB, but nothing related to JMS and MDBs. So here's what I find through the numerous exampl...
Ophelia asked 25/4, 2010 at 7:33

1

Solved

I'm just about to use the new EJB3 TimerService (as part of Java EE 6), and as usual, I'm impressed by the brevity of JavaDoc :) Do you know what is the effect of the persistent property of the Ti...
Supernova asked 20/4, 2010 at 7:47

2

Solved

I am trying to use 2 persistence units within the same transaction in a Java EE application deployed on Glassfish. The 2 persistence units are defined in persistence.xml, as follows: <persiste...

3

Solved

I've written an authorization system which relies on objects representing the current user. To simplify programming and increase performance I want to hold those objects in a ThreadLocal after the ...
Depression asked 9/4, 2010 at 11:36

2

Solved

I wrote a stateless EJB method allowing to get an entity in "read-only" mode. The way to do this is to get the entity with the EntityManager then detach it (using the JPA 2.0 EntityManager). My c...
Invulnerable asked 29/3, 2010 at 14:50

2

Solved

I'm working with EJB and JPA on a Glassfish v3 app server. I have an Entity class where I'm forcing one of the fields to be unique with a @Column annotation. @Entity public class MyEntity implemen...
Nonconductor asked 25/3, 2010 at 22:30

3

Solved

Is there any reason for making delegate when using EJB3? Because the only real benefit i see from delegate is that it allows to hide lookup and access details of EJB architecture. Well it also prov...
Genovera asked 25/3, 2010 at 18:5

1

I have a JSF application running on glassfish 2.1 with a EJB 3 backend. For authentication I use a custom realm. The user authenticates using the e-mail-address and password he specified on registr...
Councilwoman asked 21/3, 2010 at 13:28

4

Solved

I am using logback/slf4j to handle logging in my application. Everything was working perfectly until I started using EJBs. Once I added a stateless EJB to my app, the logger started ignoring my log...
Headpin asked 10/3, 2010 at 15:24

1

In Weblogic 10.3, how do I inject a remote EJB from one EAR into a Stateless bean of another, both EARs being deployed in the same container? Ideally I'd like to do as much as possible with annotat...
Feck asked 1/3, 2010 at 21:12

1

Solved

I am trying to get a simple example up and running using JPA in an EJB through GlassFish. I have the following persistence.xml <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persi...
Landgraviate asked 12/2, 2010 at 13:41

© 2022 - 2024 — McMap. All rights reserved.