manish p

Greenhorn
+ Follow
since Aug 20, 2001
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 manish p

JUnit provides a framework for unit testing your code. You will still have to write the test cases for yourself. The strength in using JUnit is that it provides a framework for you unit tests to sit in. This framework will allow you to run regression tests on your code, e.g. everynight before you go home, and then present you with a report of the errors.
22 years ago
Sound like the panel your labels are on is using the FlowLayout manager. Either, create your own layout manager or don't use one at all. Look up 'Layout Managers' in a JFC book.
22 years ago
Hi,
there is a book called 'Enterprise Java with UML' (by CT Arrington), which may be useful. Although I have not read it, I am planning to purchase a copy. Has anybody out there read it ? Is it a good buy ?
Hi,
As you are using the MVC model, I understand that changes to the model would result in property change events being fired to the controller, which would then update the view. Your class that contains all the properties is part of the model.
Why create a method that takes in your holder class (model), on the controller ??
Why not have the controller as a property change listener on the model ? This way the controller will only need to implement the propertyChanged(PropertyChangeEvent e) method. The model would then fire off property change events, where the PropertyChangeEvent would contain the old and new values.
Hope this helps.
Hi Vish, I think you may be a bit too ambitious here and dig yourself into a deep hole. Say you managed to convert the objects in your UML diagram into java classes, how are you going to generate the queries to your database ? Also how are you going to generate the JSP's from the UML model ? You may want to download a trial/student version of TogetherJ. This tool will generate the 'skeleton' java code given an UML model, the developer will still need to 'add the meat'. I suggest that you create something similar to this.
As you do not know the service required until run time, you may want to use the Factory Pattern. This way the factory can return a suitable service to process the request. Objects returned by the factory will need to implement an interface, that you will need to define, which contains all the methods required by the client. I am sure one of these will be a method such as 'public boolean process(BusinessObj). I believe this would satisfy your server side requirements. Also you will be able to add new services to your software very easily.
This will satisfy your server side requirements. Do you need to have a different user interface for each service ? Is this a server side app only ?