Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

Tanveer Ahmad

Ranch Hand
+ Follow
since Sep 20, 2005
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 Tanveer Ahmad

Here is the solution...
1. Divide the balls in 3 goups of 4 balls each.
2. weigh any 2 sets.
2a. If you are lucky they will be of same weight the you can easily figure out the faulty one in next two weigh from the third set of 4 balls.
2b. If they are not of same weight then read on...
3. number the ball... say 1, 2, 3, 4 be the one which was lighter and 5, 6, 7, 8 are the ones which are heavier. (lets call the other four as 9, 10...)
4. take one ball from each side (no 4 & no 8) and put it out.
5. move two balls (2 & 3) to the set of 5, 6, & 7 and take 4 balls of the third set (9, 10..) and put it in the lighter set (1, 9, 10, 11, 12) now weigh
case 1 - No change in the balance - faulty is ball no 1 (and faulty is light weight)
case 2 - change in the tilt... then faulty is among 2 & 3 (since 2 & 3 were lighter then the faulty is light weight)
case 3 - Equal weight... Faulty among 4 & 8
At this point you still have one option to weigh and two faulty balls...
With this you can solve the case when you have two chances to weigh and 4 balls to filter (2a)...
Hi Forum,
Could any one please let me know section/topic wise breakup in percentage for SCDJWS 5 exam?
Those who has already appeared in the exam should have it in the mark sheet.

Thanks
Tanveer
Hi Ashish,
The basic idea of shopping cart is to let the user add items in it and at the end pay for all the selected items. Here in this case the user can keep on adding "order line items" to the "order" and finally he/she can pay for it once done.
So ideally the moment the user decides to prepare an order, there should be an shopping cart ready for him/her.

Now its up to the designer to decide where he wants to maintain this shopping cart. in ejb (SFSB) or in the HTTPSession bean.

If you ask me, I would say go for HTTPSession.

thanks
Tanveer
Hi All,
Please dont mind, after designing the sequence diagram (using StarUML) and exporting it in a JPG format I could only see some blurr lines and some unreadable words (in MS picture viewer).

My question is what should be the minimum resolution of the image.
Say, if I upload my diagrams for review, will the guy evaulating my assignment put some effort to zoom in to the image to see it clearly?

Thanks
Tanveer
Hi All,
Thanks a lot for your replies. I agree, I should be using a Factory instead of that code. But it again brings to same point. There will be an interface AbstractFactory which will be implemented by ConcreteFactory. Now my client class will have something like


How do I show this in the sequence diagram?

Thanks again for clearing all my doubts.
Tanveer
Hi All,
I have an interface A with one method M(). I have two classes A1 and A2 which implement interface A.
So the logic is


How do I show this in the sequence diagram?


Thanks
Tanveer
[ July 08, 2008: Message edited by: Tanveer Ahmad ]
Yes, There can be 1 to many relationship between flight - equipment. But you have to take in to account TIME. At a certain time (i.e. when the flight in on air) there is always 1-to-1 relationship. Also At the planning time (travel planning) the airline has to mention that this flight will have A320 or A330. Only in some situation this changes say the plane not available or something.

Hope that helps.

Tanveer
Hi All,
Dont know if I am re-asking the same question. But Is it a wise idea to show Entity bean or the Business Object (J2EE D.P.) in the component diagram?

Cade does not show any of those, instead shows DAO. What If I want to use CMP-CMR (without DAO)?

Thanks
Tanveer
[ March 05, 2008: Message edited by: Tanveer Ahmad ]
Another question I have is :- Say there is a flight (Flight number X321) that takes off from A goes to B then C and D => A->B->C->D. Now my question is -

Will the flight number be same for all the legs (or segment or whatever) be the same??

Or will there be a change of flight number and a new flight number is given for each leg (or segment or whatever)?

Thanks
Tanveer
Hi Praveen,
I could not understand what do you mean when you say "They both are same.". Please put more light on this.


Thanks
Tanveer
[ February 10, 2008: Message edited by: Tanveer Ahmad ]
Hi Alexi,
You are right... SFSB are costly. But if you are using SFSB then it means that your EJB layer is having complete business logic and is self contained and the client layer (Web server) is worried only about presentation logic.
This means that the Business component (EJB layer) can support any type of client (Web based or swing based etc)
But the problem is you are not designing the software to be used in heaven. You are designing it to be used where price matters. you are clearly told that swing will be used or not even if they are used then how capable will be your app server and then you are never sure what changes will impact the system.

Thanks
Tanveer
Hi Bruno,
I did some google for Flight Segment:-
Segment of a flight involving a stopover, change of aircraft, or change of airline. Also called flight segment. "http://www.businessdictionary.com/definition/flight-leg.html"

That means there is a flight which goes from A->B->c->d. But you may want to go to X from A so your flight plan(Itinerary) will be - A->B->X. Here A->B is a segment and B->X is another. That way you have ONE segment by ONE flight and another FLIGHT for another SEGMENT. For an itinerary, segment = flight.


Thanks
Tanveer
[ February 06, 2008: Message edited by: Tanveer Ahmad ]
Hi Bruno,
You are right... A segment IS EQUAL TO a flight. But a flight IS NOT EQUAL TO a segment.
See, A Flight can go from A->B->C which is TWO segments A->B and B->C.


Thanks
Tanveer
Thanks David.
Following your hints I have come up with my format.
My motto would be to come up with a simple yet intellegent document. I would assume the grader to be an intelligent and intellectual person and would not try to hurt his/her intellectuality.

OVERVIEW
What are the requirements that you've extracted/deduced.
What assumption you have made to deduce those requirements.
How those requirements affect use case (If at all)

REFINED USECASE
Only if there was a use case which was affected because of assumptions. You have to back this with some solid arguments. It would be better if it does not cause a deviation in the business process. It should not contradict anything not even your assumptions. If you are able to convince the grader with your arguments you will get good score (Good impression). If you fail to do so, you will loose some marks. A risky thing to do I think.

DELIVERABLES
- a summary of all the assumptions

CLASS DIAGRAM
- Main Generic Class Diagram
- Basic building blocks, and why (Incase you have used something like swing for UI and you just want to show how the UI rendering works for example).



COMPONENT DIAGRAM.
- The component diagram
- More specific diagrams if you feel like it (Incase you have used something like swing for UI).


SEQUENCE DIAGRAM
- the sequence diagram
- Specific sequence diagram (Incase you have used something like swing for UI and you just want to show how the UI rendering works for example).


CONCLUSION
- How to apply J2EE patterns, where and why (It should be brief)
- Hints to technology you could use (Only if it remarkably different from day-to-day technology.)
- mention of tiered architecture and how your building blocks will spread across (or not)

So guys could you please comment on refinement of the use case?
And Do you think something can be further added or removed?
Thanks Adne... I will clear my mind from those things.

Today I applied for the assignment. It will take 10-15 days for the link to come in my mail id. So wait is on.

From the various discussion in this forum... I came to a conclusion that it is good to have a document describing assumptions made and some explanation etc.

Do these document have any preferered template or format?
What format you guys have used?
Can you share it with me?

Thanks
Tanveer
[ January 28, 2008: Message edited by: Tanveer Ahmad ]