ejb-3.1 Questions

1

Solved

I'm doing my first Java EE project and I want to preform a test. I searched and found that since EJB 3.1, there's the possibility of using an embedded EJB container to test the business layer. I'm ...
Headless asked 11/5, 2015 at 13:52

0

For Container Managed Transactions (CMT) in EJB3, we have the following EJB annotations for Transaction Management. @TransactionAttribute @TransactionManagement Unfortunately, there are no ways...
Adjuvant asked 13/5, 2016 at 7:55

2

I'm facing this particular problem right now and I really don't know whether is it possible to achieve this somehow or not. But here's the situation: We have this webapp(Java EE 6) which is organi...
Hallowmas asked 31/10, 2014 at 9:8

1

I am trying to invoke remote ejb on each node of a cluster with nodes node1 & node2, but i am always getting node1. Deployed EJB & client code as EAR file in both nodes. Application is runn...
Malynda asked 28/1, 2016 at 18:34

1

It seems like resources are not available to a Singleton's @Predestroy method. @PreDestroy public void cleanup() { logger.info("*** Application shutting down. Dropping temporary tables ***"); tr...
Unreliable asked 21/12, 2015 at 15:44

3

So I'm running a Java EAR application on a Glassfish 3.1. I created a stateless session bean with a single annotated timer function in my EJB Module. I don't have the exact code but it looks someth...
Equisetum asked 26/10, 2012 at 18:41

3

Solved

I am a bit confused about managing relationship in JPA. basically I have two entities with a One to Many relationship A configuration can have have a one or many email list associated with it. @E...
Plumage asked 31/10, 2012 at 2:43

1

Solved

In my application I use @Asynchronous business methods on session beans in two different places. Each has its own logic and requirements so ideally I'd like to configure a maximum thread pool size ...
Hermann asked 12/11, 2014 at 14:18

1

Solved

There is lot of information about Stateless, Stateful and Sigleton beans everywhere but almost nothing about javax.annotation.ManagedBean. At a first look I assumed that It's be similar to Spring's...
Raney asked 4/9, 2015 at 14:35

7

Solved

EJB achieved many improvements in 3.x versions, Spring is also commonly used and version 3 is a good alternative. There are many articles on web, but no exact comparison about ejb3x versus spring3...
Supine asked 16/8, 2011 at 9:30

1

I am using JBOSS EAP 6.4 . I have schedule some schedulers in my ScedulerBean using EJB @Shedule annotation as follows. Here the ShedulerBean is dependson StartupBean. @Singleton @DependsOn("Start...
Gui asked 14/7, 2015 at 9:14

3

Solved

If i'm working with ejb 3.1, what's the différence between <packaging>jar</packaging> and <packaging>ejb</packaging> ... <plugin> <groupId>org.apache.mave...
Ferricyanide asked 18/9, 2013 at 7:47

3

How can I configure a schedule intervals: @Schedule(persistent=true, minute="*", second="*/5", hour="*") outside of the application code? How can I configure it in ejb-jar.xml? Can I configure ...
Venal asked 16/10, 2010 at 20:26

1

Solved

In a Java EE 6 application running on GlassFish (3.1.2.2b5), suppose you have a ConfigurationService, which reads some properties files and hands out property values accordingly: @Local public int...
Alderney asked 20/5, 2015 at 15:37

1

I am currently preparing my final project study. I have to develop a distributed application for the management of human resources, but on my benchmark for technologies to use I found it conf...
Greedy asked 16/3, 2015 at 14:58

0

I followed this link and integrate ActiveMq 5.6 with JBoss eap 6.3. I am trying to use an MDB in my poc project. Though the war deployed successfull, onMessage() method doesn't get fired. QueueNam...
Genaro asked 10/2, 2015 at 10:33

5

I am new to Java EE 6 and CDI. I have read a couple of tutorials and the weld documentation. However something that should work from my understanding doesn't so I need help. I have the following s...
Cyton asked 17/11, 2011 at 18:23

1

Solved

LoggerProducer.java is a class used to produce Loggers to be injected in CDI beans with: @Inject Logger LOG; Full code: import javax.ejb.Singleton; /** * @author rveldpau */ @Singleton publ...
Viridescent asked 24/11, 2014 at 11:14

3

Solved

I have an EJB Stateless Session Bean. I have these requirements: This Stateless EJB should be initialized at startup The initialization code should make a transactional access to a database The...
Scowl asked 11/3, 2014 at 17:45

1

Solved

Can @Stateless class have different modifiers than public? In documentation I have only found constraints of constructor/methods visibility, but nothing interesting about class level access.
Anchylose asked 16/9, 2014 at 11:30

2

Solved

After several years developing in Spring, I switched to EJB and I am not happy that I have no solution for this use-case. Let's say it is the strategy pattern implemented by a map. In Spring, it co...
Wiper asked 4/8, 2014 at 7:24

1

I'm confused between two attributes of @Resource annotation. Java Documentations says : mappedName : A product specific name that this resource should be mapped to. The name of this resource, as d...
Lappet asked 30/7, 2014 at 9:21

2

Solved

I'm facing problem while doing lookup for EJB 3.1 deployed on WebSphere 8.5. Please suggest me : What are all libraries i need to include in classpath? How to construct lookup string? Is there a...
Monzon asked 22/7, 2014 at 7:19

2

Solved

I am trying to understand the differences between the EJBContainer class provided by Java EE 6 for embeddable unit testing of EJB modules and Arquillian. Is there a good resource or can someone he...
Turney asked 19/6, 2014 at 15:51

3

Solved

I'm currently learning the new Java EE 6 component models and am confused with the latest dependency injection mechanism. So here are my questions: 1) What is the difference between @Inject and @E...
Bandit asked 4/5, 2011 at 20:57

© 2022 - 2024 — McMap. All rights reserved.