File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes question about design of Stateless Session Bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "question about design of Stateless Session Bean?" Watch "question about design of Stateless Session Bean?" New topic
Author

question about design of Stateless Session Bean?

Robert Strong
Ranch Hand

Joined: Sep 10, 2002
Posts: 84
hi, I usually used session facade pattern with 1 stateless session bean as a controller interacting with several Entity Bean to realize business logic in usecase.

now, as business logic grows more complex, to promote component reuse, I'd like to add a common service layer between the controller stateless session bean and Entity Beans. Should I use stateless session beans for this kind of common service layer? I'm afraid that a transaction span across multiple stateless session beans would hurt performance?

anyone here could help me out?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

No, just make the Service layer POJOs.

"1 stateless session bean as a controller interacting with several Entity Bean to realize business logic in usecase."

How big is that Session Bean? I would definitely stick that stuff in the Service layer like you plan.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about design of Stateless Session Bean?