ejb-3.0 Questions

3

Solved

I would like to migrate some old EJB 2.1 code to EJB 3.0, but there is some handling of configuration errors in the ejbCreate method. Is there an EJB 3 version of that method? Edit: In EJB 2.x ejb...
Procter asked 27/10, 2011 at 19:4

1

Solved

I have a Facade that has a persistence unit. And I need the Facade and it's dependencies initialized before the RoleController Conconstructor runs, is it possible in EJB 3.1 to do that ? In Spring...
Latta asked 7/10, 2011 at 19:51

1

Solved

Could someone help me understand the use of beanInterface parameter of @EJB annotation in JavaEE 6? I have a situation in which I have an EJB and I want it to be accessed locally and remotely as w...
Dialyser asked 5/10, 2011 at 19:18

2

Solved

How would i add a shutdown hook (just like the JVM Shutdown Hook) to listen (get notification) when an EJB application is deployed/undeployed (to stop the JMX MServerBean)? I could use a ServletCo...
Necessarian asked 29/9, 2011 at 19:58

2

Solved

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 dep...
Mccorkle asked 18/8, 2011 at 0:17

2

Solved

There are so many things are common in in EJB3 and Spring 3 with hibernate. I need to findout where I can use Spring framework with hibernate not EJB3 and viceversa.
Retiform asked 9/8, 2011 at 15:12

3

Solved

I am learning EJB3 from last few days. I have many questions regarding EJB, application servers and deployment of EJB. To start with, I have created one simple helloworld stateless session bean b...
Schiller asked 29/3, 2010 at 4:49

1

Solved

I was able to get some hands on EJB3.0 Timer Service.I was able to get the timeout working and I was able to invoke the timer using servlet Context listener.I have deployed a simple app which sends...
Finicky asked 4/8, 2011 at 20:52

6

I was wondering why do we need separate Remote and Local intefaces for EJB 3.0 Session beans. I guess most of the time they would both be defining the same contract. Why cant I have a common interf...
Introgression asked 6/9, 2009 at 13:48

2

Solved

I have a large non-Java EE, JSF-based web app project. Our system is layered (in the source code sense): there's a data model package, building on that is the DAO package. We are using Hibernate's ...
Hexad asked 2/8, 2011 at 16:6

2

Solved

This is probably something trivial, but I'd love some help. I get: javax.ejb.EJBException: java.lang.IllegalStateException: Illegal to call this method from injected, managed EntityManager 11:...
Interrogate asked 23/6, 2011 at 9:20

1

Solved

I know one can use interceptors before a method call by using the @AroundInvoke annotation. What I would like to do is execute certain code after the method call, so that I can for example create ...
Stringed asked 21/6, 2011 at 14:7

1

Can CDI inject EJB references in my remote EJB client? Actually I've a JUnit test case that runs locally on my system and access a EJB running on a standalone JBoss AS. I'm currently using JNDI t...
Undertow asked 17/6, 2011 at 3:47

1

Solved

Using Glassfish, I can setup a string jndi entry: JNDI name: "com/xyzcompany/echo/EchoServiceBean/viewName" Factory Class: org.glassfish.resources.custom.factory.PrimitivesAndStringFactory Proper...
Eggcup asked 16/6, 2011 at 18:24

2

Solved

I recently gone through a Netbeans article about how to create and Enterprise Application Client that access EJB deploy on Glassfish.(Article Link Here) I have couples questions about this article....
Ringtail asked 15/6, 2011 at 17:44

3

We have a desktop based application based upon EJB3, Oracle 10 and JBoss 4. This was created around three years back. JPA entities were used for ORM and the business logic was implemented in the St...
Belcher asked 2/6, 2011 at 7:7

1

Solved

Usually I'm using @RequestScoped or @SessionScoped (from javax.enterprise.context) to inject objects (for instance in faces beans) using @Inject. I am also using EJBs. As I understood, a set of sta...
Octane asked 16/5, 2011 at 14:8

2

Solved

This question has been asked once here EJB 3 Session Bean Design for Simple CRUD, and I just want to ask more in depth questions about this design. I already tried to ask the questions at the origi...
Laterality asked 12/4, 2011 at 20:33

1

Solved

I have read this post and it doesn't answer my question. Stateless session bean with instance variables I am reading the JEE5 tutorial and on this page it states http://download.oracle.com/javaee...
Lauretta asked 13/4, 2011 at 1:42

2

Solved

I really want to abuse @Asynchronous to speed up my web application, therefore I want to understand this a bit more in order to avoid incorrectly using this annotation. So I know business logic i...
Terra asked 10/3, 2011 at 19:22

2

Solved

I'm trying to use this method for receiving mail in our EJB3 app. In short, that means creating an MDB with the following annotations: @MessageDriven(activationConfig = { @ActivationConfigProperty...
Stylist asked 21/11, 2008 at 8:31

2

Solved

I'm having a problem with the following setup: A Java application send email msg to a JMS queue, then an MDB listening to the queue get the email msg with the onMessage method, it open a connectio...
Joaquinajoash asked 11/2, 2011 at 20:11

5

I'm playing aroud with Grails and am finding the ORM stuff tedious because I don't fully understand what I'm doing when it comes to domain classes. I'm hoping someone can put me back on track Cons...
Reflation asked 10/2, 2010 at 17:13

1

Solved

I have restful web services in a Java EE application (ejb3) running on jboss. And do not know how to get username or password programmatically, like when service method is called I want to be able ...
Levitation asked 16/2, 2011 at 8:10

1

Solved

I need to access the clients principal (username ) inside a ejb method. I don't want to add it as a parameter. Tryed adding them to Context object like ; prop.add(Context.SECURITY_AUTHENTICATION,"...
Remindful asked 2/3, 2010 at 14:21

© 2022 - 2024 — McMap. All rights reserved.