SessionBean « ejb « Java Enterprise Q&A





1. Simple but good pattern for EJB    stackoverflow.com

What would you suggest as a good and practical but simple pattern for a soloution with: HTML + JSP (as a view/presentation) SERVLETS (controller, request, session-handling) EJB (persistence, businesslogic) MySQL DB And is it necessary to ...

2. EJB SessionBean - combination of @TransactionManagement and @TransactionAttribute    stackoverflow.com

am I right that combination of @TransactionManagement(TransactionManagementType.BEAN) with any settings of @TransactionAttribute on SessionBean has no sense?

@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
@TransactionAttribute([any possible value of TransactionAttributeType])
public class SomeSessionBean {
    ....
}
I cannot find this ...

3. SessionBean Defined methods like ejbCreate,ejbRemove implemmentation?    stackoverflow.com

i have got bit confused about the functionality of ejbcreate and ejbremove in stateless and stateful session beans? here is my understanding and doubts:- 1)StatefulSessionBeans: on call to create method ...

4. Usage of BusinessDelegate for calls from one stateless SessionBean to another    stackoverflow.com

Should business delegate be considered for usage while accessing a statelss session bean from another stateless session bean? I would not doubted it if I was consuming service from presentation tier ...

5. Where I can't create timer of EJB3 Timer Service?    stackoverflow.com

In EJB3 Timer Service, I can create the timer with the timerService.createTimer(...)function, but the question is where I can use it? As I know, I can't do it in Session Bean's lifecycle ...

7. Unablt to call a sessionbean's business method in EJB 3.0    java-forums.org

Hi everybody, I am new to EJB3.0 and to this forum also. I amtrying to develop a sample application usinf EJB 3.0 and trying to call it from a servlet in a web application. I have made the injection of Remote interface using the @EJB annotation in my servlet class; but I am getting Null Pointer Exception at the place where ...

8. Unablt to call a sessionbean's business method in EJB 3.0    java-forums.org

Unablt to call a sessionbean's business method in EJB 3.0 Hi everybody, I am new to EJB3.0 and to this forum also. I amtrying to develop a sample application usinf EJB 3.0 and trying to call it from a servlet in a web application. I have made the injection of Remote interface using the @EJB annotation in my servlet ...

9. TimedObject in Stateless SessionBean    java-forums.org





10. @EJB injection in sessionBean result in nullpointer    forums.oracle.com

Thanks for the input! I haven't tried to use a debugger but I don't think it will help me in this case, since its probably the injection that doesn't work. I tried to just call the toString() method on the airportFacade, with the same result, so there is nothing in the facade/Entities that makes the application crash (so far:) )

11. Package Structure for SessionBean in EJB    forums.oracle.com