ejb-3.1 Questions

3

Solved

I think I'm having a basic understanding problem here and I hope someone can explain this to me. Lets say we have a stateful EJB_A and a stateful EJB_B and a sessionscoped ManagedbeanA: @Stateful...
Deform asked 29/11, 2012 at 20:38

3

Solved

May be the best way is doing it manually. But in a large project you need some tool to assist you. It was the idea that led me to search a tool. Are there any EJB migration tools available for mig...
Sanalda asked 12/4, 2012 at 9:21

2

My question here is almost similar to my other question Explicit delete on JPA relationships but I thought of simplifying it further to warrant more detailed answers. Imagine I have a OneToMany re...
Onassis asked 31/10, 2012 at 7:33

1

Solved

While migrating a JBoss 5 application to JBoss AS 7 (7.1.1.FINAL) I have a problem with a new JMS message driven EJB. Within message processing, some master data fields have to be checked. To enhan...
Marrin asked 30/10, 2012 at 15:24

3

Solved

I am doing a small research on Unit Testing of EJB 3.1. At the end my goal is to produce a easy to use solution for Unit Testing EJB 3.1. I do not have much knowledge with big EJB implementations...
Deplume asked 14/10, 2011 at 9:32

2

Solved

I am trying to inject EJB into Spring (3.1.2) service (both in different WARs) Both are very simple (methods removed to simplify example): EJB: @Remote public interface MyBean { } @Singleton pub...
Earlineearls asked 18/10, 2012 at 20:43

3

Solved

The spec says that CDI container removes a SFSB when the scope's context is about to be destroyed. How does it exactly remove the EJB? It does not seem to be calling the method annotated with @Remo...
Luxembourg asked 1/5, 2012 at 20:0

4

Solved

I need a way to dynamically specify the persistence unit in a EJB. Simplified example: I have an application using multiple databases as data stores. Each of the data stores are structurally the...
Sanford asked 31/3, 2012 at 15:26

3

Is there any method to prevent a Java EE application from starting if an exception occurs during application initialization? I'm basically looking for a way to cause the application to enter a "j2e...
Overcash asked 12/8, 2011 at 16:46

2

Solved

I'm working on a Java webapp trying to combine the following technologies: Java EE 6 CDI JSF 2 EJB 3.1 Spring Security I provide CDI-based backing beans (@ViewScoped, @Named) for my JSF pages. ...
Bacteriolysis asked 21/8, 2012 at 19:7

0

I created a EJB3.1 and injected CDI bean using the @inject but facing some issues while unit testing however when tested from the servlet its working fine. I have the beans.xml in the WEB-INF folde...
Ejaculation asked 29/7, 2012 at 13:17

2

Solved

I tried to run flyway in my application before hibernate is hooking in on my JBoss AS 7.1. I tried with an @javax.ejb.Startup annotation, but this gets executed AFTER Hibernate is initialized and t...
Intuit asked 17/6, 2012 at 13:57

2

I'm developing a Java EE 6 application using Glassfish 3.1, B06. To secure my app, i'm using a JDBCRealm and programmatic security. This works fine to check username and password. But when it comes...
Bartizan asked 30/9, 2010 at 9:10

3

Solved

Here is the situation. I've got the following interfaces: public interface Parent { } public interface ChildOne extends Parent { } public interface ChildTwo extends Parent { } and 2 EJBs: @S...
Galah asked 27/1, 2012 at 19:18

1

Solved

In a Java EE 6 project I am working on, there is a lone field annotated with @EJB that is not being injected. Injection is working fine everywhere else. Being new to Java EE, I don't know if it is...
Opec asked 2/5, 2012 at 0:4

1

Solved

I have a moderately complex application using POJOs, and now come to migrated it to EJB3.1 so it can be deployed online, accessed through REST services and benefit from the container environment (p...
Taxicab asked 16/3, 2012 at 10:50

3

The new JSR 299 "Contexts and Dependency Injection for Java EE" seems to be based on the concept of "Scope". The beans are created and associated to one of the supported Scopes: Application, Sessi...
Dietz asked 26/1, 2012 at 10:43

1

Solved

Using NetBeans 7.1 / GlassFish 3.1, I created a new TimerSessionBean. @Stateless public class NewTimerSessionBean implements NewTimerSessionBeanLocal { @Schedule(minute = "*", second = "0", dayO...
Dopp asked 31/1, 2012 at 10:48

1

Solved

So far, I almost always worked with no-interface EJBs and have a slight understanding about the need of @Local annotation. Consider this example: public interface MyBeanIntf { void doStuff(); } ...
Chink asked 29/1, 2012 at 10:26

4

Solved

I'm reasonably new to Java EE, so this might be stupid.. bear with me pls :D I would like to inject a stateless session bean into a message-driven bean. Basically, the MDB gets a JMS message, then...
Efface asked 17/3, 2010 at 18:55

4

Solved

Can anyone tell me if it is currently possible to "glue together" a partial Java EE 6 Web Profile over Jetty? I've found a lot of articles about integrating standalone EJB 3 containers, JTA provid...
Curium asked 15/4, 2011 at 14:33

3

Solved

How to ensure that the exception thrown by @Asynchronous method from EJB 3.1 methods are not silently eaten up by Future? I know one can use Future.get method to retrieve exception but it will wa...
Infiltrate asked 7/10, 2011 at 15:45

3

Solved

I have an EJB A that invokes EJB B. The UI should not wait for more than 30 seconds for a response. If some data is missing, it should return a partial response. How can I define a timeout (time l...
Contemn asked 18/1, 2012 at 14:52

2

Solved

I'm doing my first Java EE web application using glassfish and netbeans. When I create a unit test that requires the embedded EJB Container it can take around 30s to load. I thought that was comple...
Hesta asked 9/1, 2012 at 20:4

3

Solved

I have a @RequestScoped CDI bean that I want to turn into an EJB to get declarative transactions. (I'm on EJB 3.1, Java EE 6) Currently, I am passing state between subroutines, under the assumptio...
Gay asked 3/1, 2012 at 3:0

© 2022 - 2024 — McMap. All rights reserved.