aspose 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
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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: 17234
    
    1

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: question about design of Stateless Session Bean?
 
Similar Threads
Stateful entity beans in design
Business Delegate in JEE5
Session Bean ,Entity Bean persistence
Cade's component diagram
SCEA Part II - Design Question