File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Fast Lane in class diagram 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 "Fast Lane in class diagram" Watch "Fast Lane in class diagram" New topic
Author

Fast Lane in class diagram

Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi all,

In Cade's class diagram he included some session beans as processors and those manage the entities. If I use the fast lane reader in my design to search for flights for exp. should I include a DAO for this in my class diagram, or will this be a very technology independent design?

Thanks,
Murat
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hi,

Please note that I only have passed step one.

In my design I will use a DAO as a FLDR and I will explicit state this. If you use an entity bean you probably would state this, right? So, IMO, you should do the same with FLDR (as a DAO).

Cleuton (Brazil)


Cleuton Sampaio<br />Systems Architect<br />(SCEA,SCWCD,SCBCD,MCSE,MCSD)
Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi,
Thanks for your response,

I am considering to add a search processor which searches flights, segments and adds them to the shopping cart sfsb after itinerary is prepared. Is this a right approach?

I am maintaining the SFSB handle in the Web tier for the business delagates but I dont know how my stateless processors will find this handle on the business tier. Is web tier sessions are accessible somehow from ejb tier?

Thank you very much,
Murat
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hi Murat,
---------------------
I am considering to add a search processor which searches flights, segments and adds them to the shopping cart sfsb after itinerary is prepared. Is this a right approach?
---------------------

Hmmm, it is a good approach. You could also avoid the SFSB and handle the itineraries as a composite inside the session.

---------------------
I am maintaining the SFSB handle in the Web tier for the business delagates but I dont know how my stateless processors will find this handle on the business tier. Is web tier sessions are accessible somehow from ejb tier?
---------------------

It is not right a component from one layer have references to other layer. You should use Transfer Objects to pass data from one layer to other. Your Session Fa�ades (the SLSBs) should provide services to the presentation layer, so there should be no reason for them to access the HTTP Session data.

In fact, if you need to access the HTTP Session data, you are creating an SFSB from SLSBs. IMHO (in my humble opinion) you should model the interface between presentation and business logic using something like an application controller pattern which creates commands to be processed by the business logic. In this case, you can pass context information or TO�s to the business components, like the SLSBs.

Cleuton (Brazil)
Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi,
I think you are not using the shopping cart concept in your solution.
Am I right?

Thanks
,Murat
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Yes, I have changed my mind about that.
Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Ok I think I am on the wrong way. SFSB will call the Order SLSB after the checkout method.
I think this will be the best approach..
What do you think?
Thanks,
Murat
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hmmmm, SFSBs are intended to store state between method calls and SLSBs are intended to provide services to the users. Normally we use SLSBs as session fa�ades (thru a Business Delegate, for example). You can build a Stateful fa�ade with SFSB (there is a strategy in the Design patterns book).

I recomend you read the J2EE Patterns Book and study the Session Fa�ade strategies. But the idea sounds reasonable.

Cleuton (Brazil).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fast Lane in class diagram
 
Similar Threads
Passed Part 2 with 89 percent
need guideline on part II
SCEA Part II
Passed Part II and III with 89%
what is class diagram