Annie Zhang

Ranch Hand
+ Follow
since Sep 08, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Annie Zhang

That is right. Normally the Service Locator is supposed to do the JNDI lookup and create/save the handler, and it is wise to implement as a Singlton, not the business delegate though.
I guess there is already some discussion for this.

Is there any particular reason why you choose BMP/DAO over CMP?

Thanks,
Annie
That is my confusion too. If using VLH to get a list of flights, isn't the detailed info (even including the price) for the flights retrieved all at once? Later when clients need to choose a particular flight, it only needs to get its seats through a SeatEJB. So why do we need to create the Flight entity bean? I guess maybe we have to in the sense of Itinerary-Segment-Flight relationship.

Confused. Any explanation is welcome.

Thanks,
Annie
Congratulations, Gavin!

Could you please tell about your documentation? How you organize it and to what details?

Thanks a lot,
Annie
Parag,

You are so helpful! Not just me feel this way

I have another question though:
(1) Did you mention that the travel agents also use a single signon and how ? Did you also mention how the agents represent the customers?
(2) In the class diagram, where did you put the flight layover info, is it in the flight class?

Thanks,
Annie
You are awesome! Just stay around a little bit. Don't forget us who are still struggling!

Congrats and thanks again,
Annie
Congrates, Parag! Terrific! Finally you are paid off!

I am still struggling........

You got full marks for component diagram. Can you please answer my questions?
For the web tier, did you follow the petstore WAF or struts, or just your own? Did you use EJBController, or the Front Controller talks to the business delegate? Did you use one gigantic business delegate, or several (one for each session facade)? Or the web clients and application clients use seperate delegate? Did your rich client application use a seperate front controller? Or it talks directly to the EJB tier?
You talked about the CacheManager in one of your posts. Did you show it in your Component diagram? I remember you meant to put it in the EJB tier, behind a session bean, did you go with this approach? Why not in web tier? Did you justify your decision in your documnet?

In your sequence diagrams, how did you handle the different clients?

Your comments are really appreciated!

Thanks,
Annie
[ December 02, 2004: Message edited by: Annie Zhang ]
I guess so. Another example is composite entity pattern, which only applies to the EJB 2.0.
If you don't persist the shopping cart, then others cannot "touch" your cart, unless you specifically develop some way to let others "touch" it.
The shopping cart is valid during your session period, it stays in the memory. The same applys to the booking seats.
My understanding for this is:

Both AccountEJB and CustomerEJB are composite entities,
ContactInfoEJB and CreditCardEJB are AccountEJB's dependent EJB, while ProfileEJB and AccountEJB are CustomerEJB's. This is just one type of composite entities to make use of the composite/aggregate relationship between the entities.

Another type of composite entities is that there is no "explicitly" composite/aggregate relationship between the entities. Rather, the parent or the composite entity is more or less as an entity facade in order to hide the dependent entity beans from the client. In this case, you can't find any "real" entity (from the database) related to the composite entity.

Maybe I am wrong, someone please corrects.

Thanks,
Annie
[ November 18, 2004: Message edited by: Annie Zhang ]

Originally posted by Senthil Rajendran:
Hi Dhiren,

Based on what I read as tips by SCEA passouts and other books
this is what I have done

1. Client-Tier package - Has two more packages
1.1 Web-UI package
1.2 Java-UI package

2. Web-Tier package

2.1 Web Package
Filter,front controller,Request Processor,HTML Actions,Events,Web Controller

2.2 Application Web Package
Filter,front controller, Business Delegate

2.3 Common
Service Locator (will be used by both the clients to hit application controller)

3. EJB-Tier package - has EJB Contoller, EJB Action and EJBs.

4. EIS-Tier package - has database and external systems.



I guess this applys for the petstore, since the functionalities for the
web clients and application clients are different, so they can use different
approach, i.e, the web client uses WAF framework (web controller, ejb controller etc.), while application client(admin) uses its controller and talks to the business delegate which talks to the facade, etc.

For the assignment, the web clients and travel agents have basically same functionalities. I guess it makes senses to have a business delegate and facade to be used by both. However, I don't know how the WAF approach to call the business delegate and facade.

Can anyone please explain this?

Thanks,
Annie

Originally posted by Senthil Rajendran:
Ray,

If you browse through the below "SUN" links you can find contradictory opinions. in the second link they advise to use the same controller for different types of client and in the first link they advise to have seperate controller. I just wanted all my objects to be cohesive, so I have used 2 different controllers.

Application client is not going to generate any events so I deceided not to use a web controller there.

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html#1078111

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications/client_tier/multiple_types/index.html#1028399

BTW Ray I have got a question Have you depcited "Ticket" in any of your models ? is'nt it a part of the domain model ?

Thanks,

Senthil



In the first link (2nd version), if you add the "protocol router" and take it as a controller, then these two documents are consistent.
Hi Srini,

Do you have the upload() code? If you do, could you please post it?
I tried the upload with JDK1.3.1, it complains:
"java.net.UnknownServiceException: protocol doesn't support output
at java.net.URLConnection.getOutputStream(URLConnection.java:655)"

Seems like JDK1.3.1 doesn't support upload(put) file to ftp server. Is this true? Otherwise, did I get it wrong?
Please clarify. The download(get) works fine.

Thanks,
Annie
19 years ago