A J Kumar

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

Recent posts by A J Kumar

Originally posted by aparna chintalapati:

-I had one session bean for each module. I had one stateful session bean for making reservations.
-I extended the itinerary class to store that information.
-yes, I did.

Thanks for the response, Aparna.

- I am still confused. Just trying to understand, if you didn't had the Customer stateful bean, where was you maintaining the session information.
- Did you change the BDM. If not, did you had some class named "BookedSeats" that is a subclass of Itinerary class to store booked seats information.

Hi Aparna,

Your comments are very helpful. I would appreciate if you let us know:
- How many Facades you had in the component diagram in addition to the EJB Controller. Just the Booking or both Customer stateful facade and Booking stateful facade.
- Where were you storing the booked seats information. In the Segment ?
- Did you use DAO/Fast lane reader for read-only information.

Congratulations, Aparna.

May I request you to be an active member of this forum now, so that you can guide the future SCEAs.
[ October 27, 2004: Message edited by: A J Kumar ]

Originally posted by Ramon Gill:
Hi AJ,
How about cutting WAF to the bone by showing a single component in the Web tier (for customer), and a single component in the Client tier (for travel agent), and use comments to describe all the classes and patterns they use (i.e. front controller, etc, for customer, MVC, etc for Client). The EJB tier could have more components, such as Session Facades, etc.

These would then be Cade-like.

What do you think?



Now you are talking about real world applications.

Thanks Ray.

I understand it very well by reading previous posts that it is safest to use WAF to secure good marks in the exam. However personally I feel that WAF is little bit complicated and can be simplified. I would prefer to use Struts/JSF for any real world application.
[ October 26, 2004: Message edited by: A J Kumar ]

Originally posted by Yanqu Zhou:
One more question about Rose 2000:
Does it support Composition relationship(The solid diamond) is class diagram? Thanks.

Since Composition is a stronger form of aggregation, you have to first establish aggregation relationship between two classes. Use Tools > Create > Aggregation for aggregation control. Once you have established aggreation relationship between two classes, right click on the aggregation link and then change the containment to either by value or by reference from unspecified to display composition relationship.

Is there any other free UML tool that allows us to add a component inside a processor.
Can anyone please tell how to show a Component inside a Processer in deployment diagram using Rational rose. Couldn't find the component control on the toolbar in deployment diagram view.
This is what I am going with:

Swing/AWT client -> SwingRequestProcess -> SwingBD -> SL -> SF
Thanks Dhiren. The information you provided was very helpful. And this brings up an interesting issue - Should there be a servlet filter between Swing based rich client and web-tier. The filter can be responsible for logging and security.

Any thought...
[ October 21, 2004: Message edited by: A J Kumar ]

Originally posted by Parag Doshi:
From what I understand, there are atleast 2 choices to connect from the Swing client to the business tier:

1. Swing client connecting to the web tier by making a HTTPRequest (hence the use of URLConnection) to a different controller (possibly SwingController) on the web tier, thereby, using a common web tier.


2. The Swing client acts as a EJB CLient and has a BusinessDelegate (a POJO) which uses a ServiceLocator to connect to the business tier using RMI-IIOP, thereby, bypassing the web tier.

In both the instances the BusinessDelegate either lives on the ejb client tier (for swing) or the web tier (for webapp) and communicates via a SL with the business tier (which could have EJBActions, EJBController, SessionFacades etc etc).



That's very interesting. I have never thought about using URLConnection to connect to web tier from client tier. Could you please point me some documentation/link that describes this approach in detail.

Originally posted by Dhiren Joshi:

Mark how would u control client authentication if there is no controller between the Biz delegate and client .?

Even if u had method level authentication how would u pass your principal?
Please give your suggestions.



As far as I understand, since the BD and SL are on the client tier, SL will communicate with EJB tier using RMI-IIOP that allows you to pass the user credentials.

Ramon - I am not sure if I understood when you say that you would go for the link to a separate front controller on the web tier. Could you please eloberate on that.

Dhiren - To be honest, I haven't focussed on the Swing client part of the Pet store so far. How about we just deploy the business delegate and service locator in the client tier. The swing client can invoke the business delegate and BD can use Service locator + JNDI to interact with EJB tier. I am not sure where would we use the URLConnection. Am I going in the right direction.

Any suggestions welcome...
[ October 20, 2004: Message edited by: A J Kumar ]

IMO the swing client can directly use business delegate to interact with EJB Tier. However I have seen some posts where people are suggesting that Swing client should use XML/SOAP to connect to Front controller of web layer.

Could you/others please share your opinion/preference.

[ October 20, 2004: Message edited by: A J Kumar ]

Thanks for the response. Guys and gals... please provide invaluable ideas and suggestions.