aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Builder pattern in business tier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Builder pattern in business tier" Watch "Builder pattern in business tier" New topic
Author

Builder pattern in business tier

rekha Ssharma
Greenhorn

Joined: Jul 03, 2012
Posts: 6
Hi, I am Rekha,
In my class diagram i need to show "builder design pattern". But i,m facing problem in mapping the classes and interface present in builder pattern to the Session beans classes.
i know it can be implemented in many ways but i,am thinking of a good approach.
I,m planning to make concrete classes of builder pattern as SLSB and but i,m thinking whether two or more SLSB can implement one interface or not.
Director class is also a SLSB and Product is Entity class.


Anyone who had already done this ,please give me some idea.

And one more thing can a builder pattern will return more than one product

Thank you,
Rekha

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

SLSB are Java classes and can implement multiple interfaces. Which means you can have them implement a common one in addition to the "EJB" interface. However, SLSB stands for *stateless* session beans. Builders have state. How do you reconcile this?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
rekha Ssharma
Greenhorn

Joined: Jul 03, 2012
Posts: 6
Jeanne Boyarsky wrote:SLSB are Java classes and can implement multiple interfaces. Which means you can have them implement a common one in addition to the "EJB" interface. However, SLSB stands for *stateless* session beans. Builders have state. How do you reconcile this?

I think the statefull session bean will do the
the work.this SFSB implement two interfaces,one its business interface second the builder interface.
One more thing i want to know that,do it is mandatory that the concrete builder have pre inilized items or they can be initialized at runtime.
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Builder pattern in business tier