ejb-3.0 Questions

3

There are two ways I know of to obtain an EJB instance: dependency injection in servlets and EJBs via the @EJB annotation JNDI lookup via Context.lookup anywhere What are the differences, impli...
Clisthenes asked 18/1, 2010 at 11:37

2

Solved

Are EJBS used in database backed websites(that are accessible to all)?
Morehouse asked 23/1, 2011 at 12:59

2

I have a question related with possible performance issue while using @EJB annotation. Imagine following scenario public class MyBean1 implements MyBean1Remote{ @EJB private MyBean2Remote myBean...
Cornice asked 20/1, 2011 at 22:34

1

Solved

I am using jboss 5.1.x, EJB3.0 I have MDB which listens to JMS queue. when the MDB taking a message, it dispatch a msg via TCP to some modem. sometimes that Modem doesnt response when the server i...
Livraison asked 18/1, 2011 at 13:23

3

I saw recently that Sun/a third party had released a maven dependency containing only the interfaces for e.g. EJB3 and JPA. Does anyone know the groupId, artifactId, repository etc where they are...
Heriberto asked 4/9, 2010 at 9:22

3

Solved

Regarding a Java EE Web application which is going to be served by a full Java EE Application server e.g. GlassFish, which is the best ORM Solution? EJB 3 or Hibernate 3 And why?
Custodial asked 9/1, 2011 at 13:58

2

Solved

I'm new to EJB 3 and pretty confused with some doubts which Google didn't provide with a satisfactory answer. I'm trying to create a framework with some base classes and some utility methods which...
Ghislainegholston asked 14/8, 2010 at 15:54

3

Solved

I have never worked on ejb, when I started programming Spring was already arrived and all my projects have been with Spring only, recently I had one interview and they wanted knowledge of EJB...
Bus asked 22/12, 2010 at 22:48

1

I am trying to inject an EJB stateless bean in to a servlet, but the servlet throws a NullPointerExcetion. I am using JBOSS to deploy the EJB and servlet. I am relatively new to the Java world, so...
Purgatory asked 14/12, 2010 at 0:34

1

Solved

Is the @Resource annotation on a method applied when an EJB is deserialized? I have a EJB Timer thats persisted by the container and would like to know if the transient TimerService (it's not seria...
Kukri asked 24/11, 2010 at 11:0

5

Solved

Consider this simplified view of some code with which I'm working: @Stateless(...) @Remote(...) @TransactionAttribute(TransactionAttributeType.MANDATORY) public class FirstEjbType { @EJB(...) p...
Jade asked 9/11, 2010 at 17:54

2

Solved

I am running an example of ejb using JBoss5 Container. I am using an example from here(Part one). In the example I deployed bean in JBoss and an application in Tomcat(to acces the bean from JBoss)...
Unwitting asked 12/10, 2010 at 5:11

1

Solved

It's posible to define a listener for EJB 3.0 .jar that is called in the module/context initialization? Similar to the ServerContextListener for web project?
Sidecar asked 24/9, 2010 at 14:57

1

Solved

I am unable to get dependency injection to work for my remote service and I cannot figure out why. I want an instance of RemoteService so I wrote. @EJB(name="RemoteService") private RemoteService ...
Auriga asked 23/9, 2010 at 15:6

2

Solved

Obviously using stateless EJB beans in an entity bean smells, but please consider a scenario as follows and tell me if you know of a better solution: I have an InvoiceTemplate Entity Bean with fi...
Verso asked 13/9, 2010 at 11:13

1

Solved

Hello Everybody i'm new in EJB3, i know how to deploy Session Bean (Stateless or stateful) on Glassfish server in one computer. My question is: how can i deploy session bean on Computer A and Deplo...
Cycloparaffin asked 1/9, 2010 at 3:20

4

Solved

We all know that in the web tier there is the possibility that only a single instance of a given Servlet exists which services multiple requests. This can lead to threading issues in instance varia...
Ajay asked 6/3, 2009 at 10:57

1

Solved

If I create an EJB3 bean (say a stateless session bean) in an application using Spring 2.5 for DI, how should I inject dependencies from Spring into the bean without coupling the bean to Spring?
Disobey asked 15/8, 2010 at 20:43

2

Solved

I have a EAR with a number of EJB dependencies. 2 of these have a provided scope dependency to the glassfish-embedded-all jar. However when I do a mvn install on my local machine or when the applic...
Badderlocks asked 2/8, 2010 at 12:44

1

Solved

The SessionContext.getBusinessObject() is described in the docs as follows, Obtain an object that can be used to invoke the current bean through the given business interface. Parameters: bus...
Ill asked 1/8, 2010 at 6:28

3

I have a collection of states, that I want to cache for the life of the application, preferably after it is called for the first time. I'm using EclipseLink as my persistence provider. In my EJB3 e...
Viridissa asked 25/2, 2009 at 4:53

1

Solved

The terms "jta-datasource" and "resource-local datasource" are a little vague to me. I'm putting down what I am understanding ( or assuming ) and I'd like you to say where I'm right / wrong. The ...
Beriosova asked 10/7, 2010 at 2:29

3

Solved

I want to write this piece of code : @Stateless public class MyEjb { @EJB private static MyOtherEjbWhichIWantStatic myOtherEjb; } It makes sense to me, that I want to inject an EJB in my class...
Mcintosh asked 7/7, 2010 at 13:48

1

Solved

Does it make sense to talk about the Open Session In View Pattern within JSF2 applications? My app has JSF2 Managed Beans calling Business Service EJBs that do all the db-related stuff (there's a D...
Luxe asked 30/6, 2010 at 17:21

5

Solved

I have an EAR file with a bunch of JARs in it, and one of these JARs contains Local Session Beans (EJB3). I need to perform a JNDI lookup of these Session Beans from within an unmanaged POJO, also ...
Hornwort asked 6/10, 2009 at 6:53

© 2022 - 2024 — McMap. All rights reserved.