ejb-3.1 Questions
1
Solved
I'm working on rest service and learning EJB at the same time. I just run my application with simple chain controller -> service -> DAO and my EJB hotelService is not injected -- it is null. ...
1
I want to call a local Stateless-EJB from on ejb project from another singleton-EJB in another ejb-project. Both EJB-Projects are in the same ear file. The Application Server is a WebSphere Applica...
Rectal asked 21/2, 2014 at 12:23
2
Solved
Just a bit of background on EJB3.1 exceptions before bringing up my question -
Application exceptions comprise of
User defined checked or unchecked exceptions which have
@ApplicationException a...
Elissaelita asked 13/2, 2014 at 22:17
0
This is a follow up question to EJB3.1 Timer cancel issue
I used Spring's @Scheduled earlier in my projects. Is EJB3.1 @Schedule similar to that? How does EJB3.1 @Schedule fare in Clustered enviro...
Moonfaced asked 9/2, 2014 at 15:21
1
Solved
I have a problem with EJB3.1 Timer service. I find this issue quite strange! I have a stateless session bean like below deployed on JBoss7.1.1 application server.
import javax.annotation.Resource;...
Conure asked 8/2, 2014 at 20:57
5
Solved
Starting a new project and would like to know the pros and cons of packaging EJB in a WAR vs EAR.
Will JNDI still works when EJBs are in the WAR? efficiency? etc.?
Thanks.
Mcalpine asked 14/12, 2010 at 16:8
2
Solved
I'm trying to inject a @Named bean into a Junit test.
This works in my ejb module, but the same approach in my war module fails.
I'd like to know why I get org.apache.openejb.OpenEJBException: Cre...
3
Team,
We need to do EJB 3.1 Unit Test cases. For that we are analyzing tools to do efficient testing. We are taking arquillian, cactus in consideration. Can anyone tell me which tool is suitable f...
Team asked 12/5, 2011 at 12:19
1
Solved
I know that if an EJB method throws a checked exception there is no transaction rollback.
But is there a way to force the rollback when there is a checked exception without having to call setRollb...
Brynhild asked 20/11, 2013 at 8:47
1
Solved
According to EJB3 DI documentation it is possible to inject fields and setters. But how to inject a bean constructor ?
1
Solved
Assume I have an EJB defining two views:
Local business,
Remote business.
Both interfaces share the same method signatures, so it's like:
public interface MyBusinessCommon {
void myMethod(Obj...
Girand asked 18/3, 2013 at 12:28
0
This question is not a doubt, in truth is a tip.
Did you know that a session EJB reinjected all dependencies before each business method call? Well, I didn't know until few minutes ago and it gave...
Canvasback asked 4/9, 2013 at 20:24
2
Solved
I have a method annotated with @Schedule that is called by the container once in a while.
@Schedule(second = "*/5", minute = "*", hour = "*", persistent = false)
public void myTimerMethod() throws...
1
Solved
I'm developing in Eclipse Juno a project that includes EJB 3.1 and a Dynamic Web Project.
The EJB Class is called FirstBean and the Servlet is called EJB31ServletClient, I have achieved only to ma...
Basle asked 13/8, 2013 at 21:34
2
Solved
I try to save the result of a login process for statistics to the database asynchronously to save time during the login method. But somehow the login process takes longer if i add a thread.sleep to...
Rodd asked 28/5, 2013 at 8:47
1
Solved
I'm having difficulty with my EJB3.1 bean initialisation and more specifically to do with it failing due to perceived transaction rollback, even though I've marked the bean with @TransactionAttribu...
Liking asked 14/6, 2013 at 16:16
3
Solved
I would like to develop an application with CDI (I use Spring usually) to discover this technology.
I have read many articles about CDI to learn how it works. I have a simple question about transa...
Settle asked 5/1, 2013 at 14:30
1
Solved
I am using EJB 3.1 in my application.
I want to send one EJB's JNDI look-up name in my application to another application so that it can use that at run time & communicate with my EJB. As the ...
Caesar asked 10/3, 2013 at 17:20
2
Solved
I'm following this tutorial which also uses an EJB:
package exercise1;
import java.util.Random;
import javax.ejb.Stateless;
import javax.inject.Named;
@Stateless
public class MessageServerBean {...
3
I'm new in here and also new to the CDI world, and the first task I got in my job was to find out a way to controlled CDI uploading.
We are using both EJB 3.1 and CDI 1.0, and because they are con...
Pendley asked 24/12, 2012 at 8:36
2
I have following code to run on Apache-tomee, i am using eclipse for coding, and i want to run my simple schedule job using @Schedule annotation at application start-up.
@Startup
@Singleton
publi...
Fy asked 21/12, 2012 at 5:36
1
Solved
Can an EJB bean implement multiple user defined interfaces, except business interfaces (@Local, @Remote) or No-Interface view (@LocalBean)?
For example define two interfaces UserInterface1, UserIn...
1
I was struggling to overcome this problem! Went trough most of the similar posts over here however had no luck.
Deployment was fine but problem occurred during runtime.
I am working with GlassFis...
2
Solved
I'm trying to use Arquillian for some unit tests, however I can't find why they fail when deployed using Maven.
This is the class test:
package com.ndeveloper.spec.test;
import javax.inject.Inje...
Egwin asked 7/9, 2011 at 22:36
2
I didn't find much information about EJB 3.1 Singletons in cluster enviroment.
Is it true that specification says that those singletons will guarantee one instance per JVM - so one per cluster node...
Belindabelisarius asked 7/12, 2010 at 10:43
© 2022 - 2024 — McMap. All rights reserved.