UML tool

206 byte By laiyifana at 2007-10-3 7:58:51
Is there any free tools that can auto generate UML diagrams? I know there are tools to generate class diagrams, but what about other diagrams? Please let me know if you have any to recommand. Thanks.

Interface design query!!

365 byte By MithunKa at 2007-10-3 8:11:24
Hi all,I want to define a generic interface with set of operations, and the the different implementations of this interface are having different operations signiture. i.e how to define a generic interface for which each of the implementation can have operations with different signitures?Waiting ...

GUI - DATA HANDLING

2369 byte By soulgoda at 2007-10-3 8:18:51
hi there, we are working on quite a big application and the implementation of the gui becomes a bit of a spaghetti and we decided to look at the patterns . Not so familiar with it and don't find anything good for design patterns in swing when using J2EE technology. So here is the situation for ...

small artical on Singleton

398 byte By javatoucha at 2007-10-3 8:28:14
Hi Team,I have added an small artcal on "Singleton pattern" at http://javatouch.googlepages.com/singletonpatternI have used some of wisdom from contents of this forum in creating the artical. Please feel free to visit the link and do not hesitate to comment or note any thing missing or incorrect ...

Where does business logic go?

1524 byte By fedetxfa at 2007-10-3 8:37:59
We have a telephone ticket pricing application. We designed an object model and we have objects that have logic to decide how to price each ticket according to its characteristics and information from a database.The customer wants to remove all the logic from the application and build up the ...

Reagrding Syncronized Block

324 byte By rajpuniaa at 2007-10-3 8:39:30
Hi GurusWhat is the Benefit of Using static synchronized void amethod(){}VSsynchronized void amethod(){}Help is deeply ...

Who should be responsible for this?

2513 byte By caltuntasa at 2007-10-3 8:47:42
Hi everybody I need your help. I am working on a Vehicle tracking project using Applet and Swing. I have a form named MapClient. This form contains a MapViewer object that stores and displays Map Image. And I have a Controller class named MapClientController . This class getting requests from ...

Entity Beans Vs Hibernate

120 byte By jjjjjjjjjjjja at 2007-10-3 8:48:15
Can we use Hibernate and Entity beans together in any application?please help me.It is very urgent.

Solution/Pattern needed for complex buisiness problem

1586 byte By dawuada at 2007-10-3 8:48:28
We currently have a J2EE project built on EJB3 and were hoping to get some help on the design. A little background: Our company sells several products for various companies. Each of these companies have different business rules, etc. Initially when we built our application we were unable to ...

Simple Spring-Hibernate DAO problem.

2047 byte By max1983a at 2007-10-3 8:50:05
I have two tables in the DB, Categories and ProductsCategory one-to-many ProductsBelow is the mapping def. and a sneak view of the Product bean:<hibernate-mapping><class name="com.fivestaroffice.databeans.Category" table="categories"><id name="id" type="int" ...

Class Identification Via UseCase

238 byte By rajpuniaa at 2007-10-3 8:50:28
Hi Friends.......I know that use case is use for the purpose of requirment gatheringMy questios are1->How to Identify Classes through USE cases.2-->Is Use Case is High Level DesignThanks and Reagrd

problem connection mysql with struts

2305 byte By cedbxa at 2007-10-3 8:55:55
hi,i have a problem with my mysql database connection with struts. this is a part of my struts-config.xml: <data-sources><data-source key="domao" type="org.apache.commons.dbcp.BasicDataSource"><set-property property="driverClassName" value="com.mysql.jdbc.Driver" ...

Is this an appropriate use of AbstractFactory pattern?

678 byte By cmangiaa at 2007-10-3 9:09:15
I am new to design patterns and have a question about the usage of the AbstractFactory Pattern. I want to allow the client program to specify the implementation details of my class. As an example, suppose I wanted to create a base class named Car and then allow client programs to implement ...

Factory pattern problem?

552 byte By dzouzaa at 2007-10-3 9:12:18
I have an interface defined and I want few classes to implement this particular interface. All of these classes need to implement all the methods declared in the interface. The problem is few classes need same parameters and few classes need more parameters and few need less parameters. But the ...

Design a software for different clients

447 byte By chamalsla at 2007-10-3 9:31:38
Hi,What are the things that we have to consider when developing a software for different clients.For example if we have clients such as mobile phones, web and desktop.Should I make them call an ejb, web service or some other service.Can u plz guide me on the area's that I have to learn or are ...

Swing-agnostic Table&Tree models

2450 byte By jdupreza at 2007-10-3 9:31:56
Hello,several questions in one, really. They assume familiarity with Swing's Model classes, but are hopefully more general.Swing's JTable widget displays data found in an instance of a class implementing TableModel. Swing provides a default implementation (a Vector of Vector), but I find it ...

How to design a system for a bank?

520 byte By Alex76a at 2007-10-3 9:45:01
The company I work for is about to design a system for a bank. This system will be used by office clerks to help their daily works. For example they can handle bank accounts, credit cards, credit products, loans, client data, stuffs like this. It's a kind of accountant system.As I don't want ...

Java Singleton Pattern Tutorial

13078 byte By hemanthjavaa at 2007-10-3 9:48:56
Singleton PatternThe Singleton Pattern is one of the commonly used design templates when there needs to be a control on how an object can be created. This design pattern proposes that at any time there can only be one instance of a singleton (object) created by the JVM. The Singleton class抯 ...

design pattern: facade for delete?

1069 byte By xianwinwina at 2007-10-3 9:49:42
Hi guys,I have the following info (db):department (dep_id, name, description)empl(empl_id, dep_id, name)invoice (inv_id, dep_id, description)....question is this: say I would like to delete the department (which include the empl as well). What is the best way to do that?obviously, I can do ...

file upload http or ftp

1075 byte By Shilpa_Koula at 2007-10-3 9:50:42
Hi,We have a requirement and i am working towards a good implementation design. I appreciate your inputs.We are J2EE web application serving on https. We have a requirement to accept documents from our clients (file uploads). We expect some of our clients to have a low bandwidth connections but ...

How to implement Data Structure with custom methods

2810 byte By Meirya at 2007-10-3 9:51:05
Hello allim not sure if the topic is right but what im trying to do is goes like this :i have Custom Data Structure this custom data structure have basic methods and have no logic some thing like this : public class MyStruct {protected int i ;protected String j ; public MyStruct(){this.i = ...

OO Batch Model and optimised Java for batch?

2536 byte By klanky68a at 2007-10-3 9:53:45
Hi All,I'm looking to see if there is any literature of OO models for batch processing and optimising of batch java.Thoughts & comments welcome.........I have an existing batch process running on a mainframe which is very successful. We would like to leverage this by building a similar ...

Abstract class / interface question

886 byte By corrosivea at 2007-10-3 10:08:27
I need to manipulate references to two subclasses (let's call them Guitar and Bass, derived from Instrument). I thought about coding Instrument as an interface, but I have a problem.I have fields in Guitar and Bass (lets call them brand and price) that I would like to access without having to ...

Java Search pattern from DB2

288 byte By crusedera at 2007-10-3 10:17:43
Dear all,Im not sure that I post this question in the right section.I would like to develope my own application to search pattern from DB2.Almost of this task is Thread Problem.I would like you comment on how can make search engine usefulladv thx

what design pattern to use in this simple problem?

861 byte By xianwinwina at 2007-10-3 10:28:47
Hi there,help is very needed here as I don't know what pattern to use? (newbie)here's the deal: I have an empl that have the following information:1. account (id, first, name,...)2. projects (id, name of project, duration...)3. account_info (login_name, lastloged...)etcwhen the empl logs in, ...

UML notation: Class operation return value multiplicity

1136 byte By a3cchana at 2007-10-3 10:39:02
Hallo,how would you write function from example below using UML notation on implementation level, please:class Coin { public String[] getSideNames() {return new String{ "Odd", "Even" }; }}Multiplicity in return value is troubling me. I've tried +getSideNames( ) : String [ 2 ] but my tool just ...

Java EE design advice for a re-designed DB app

1981 byte By jayhawkstewa at 2007-10-3 10:51:42
I'm currently tasked with rewriting a legacy DB app in Java. The original was written in Delphi. It worked great for a number of years, but the powers that be have recently decided to redesign and rewrite it in Java. Basically I just have the same set of business requirements as the original ...

Best OO design

976 byte By popohomaa at 2007-10-3 10:57:25
Hi, I am currently developing a online system that has front end and back end server. The front end server will send a request to back end thru web service. THe request header contains some critical Transfer objects like Bank Account, Customer Account....etc. ALl of them extends the super class ...

Question about the Value List Handler Pattern

678 byte By fmarchioniscreena at 2007-10-3 11:00:18
Hi all,I'd like to implement the Value List handler Pattern for displaying result of a search.Basically the Collection is made of 2 elementsTravelDepartures which holds a Collection of Itinerariesand TravelReturns which holds a Collection of Itineraries too.What is the correct way to implement ...

DAO/DTO help

2821 byte By BoozDetroita at 2007-10-3 11:03:25
Hi,I have been struggling quite some time now with a certain DAO/DTO question.I have been looking all over the web but found no satisfying answer. What I did find was a forum post which formulates my question exactly:Where does your DAO/DTO implementation draw the line?For example:Let's say I ...

Opinions on the Transfer Object pattern

487 byte By jds@ku.edua at 2007-10-3 11:05:34
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.htmlThe URL given is Sun's writeup on the Transfer Object pattern. If I understand it correctly, it recommends copying data from persistent entity objects to POJOs that can be passed to the presentation layer.It seems like ...

Retrieve multiple objects with MVC/FrontController for view in JSP.

1822 byte By aagaard1a at 2007-10-3 11:07:29
I have made a MVC system (front-end only); a link call the url: ?page=createSomething to the FrontController, that is implemented as a Servlet, and then dispatch to createSomething.jsp. That抯 all fine, but I need to retrieve 2-3 list to use in dropdowns, and that抯 here I give up!A simple ...

A design problem

2921 byte By sri1025a at 2007-10-3 11:08:02
I have a client/server application in which the client sends a request (in the form of xml) and the expects a response to come back from the server for that particular request.Let's say the client sends a "login" request to the server, then it expects a "login" response. This part is very ...

Complete separation of client data from the business model?

1119 byte By bayareadavea at 2007-10-3 11:17:29
Do current J2EE best practices provide for complete separation of client data from the business model? Typically, any significant change to data used at or by the client will result in changes to the data model and vise versa. This necessitates changing all of the logic and beans that touch ...

Object With the same functionality but defferent Parameters

1787 byte By dave123a at 2007-10-3 11:20:55
Hi All,i'll directly come to the problem.i've one class name VoterListCallBack -class VoterListCallback implements ListFieldCallback {private Vector listElements = new Vector();public VoterListCallback(boolean show, String userType){}public void drawListRow(ListField list, Graphics g, int ...

Relationship design problem

791 byte By Zjga at 2007-10-3 11:31:42
Hi,I have a design problem with two classes, just say class A and class B. The relationship of A and B is 1:n, which means one A object can hold many B objects. It is a aggregation not a composition, so one B object can be hold by different A objects. Both A and B are entity classes. Here is ...

Should I model this object as Entity Bean ?

885 byte By fmarchioniscreena at 2007-10-3 11:51:22
Hi all !I'm modelling an application for selling tickets on-line.Tickets are booked on-line then the user navigates to the payment page and pays with credit card.The business analyst decided to allow a 30 minutes reservation time for people who booked the ticket to pay with credit card.If time ...

Separating Layers physically

397 byte By JamesSelvakumara at 2007-10-3 11:51:37
Hi,Under what circumstances should we provide physical separation of different layers such as presentation, business logic?Does it make sense to keep the presentation layer in a web server (tomcat) and the business logic layer in an application server (glassfish, jboss)?Or should everything ...

Advice on how to implement Transfer Object for a couple of entity classes

3729 byte By codebooka at 2007-10-3 12:01:13
This is more of a "Look what I wrote and make any general comments" kind of post. I will reward thoughtful comments with Dukes (even though nobody cares about them).Let's say I have two entity classes, Person and Address. For the sake of this discussion, let's assume the relationship is ...

Wrapping Session Beans with Web Services - A good approach?

680 byte By JamesSelvakumara at 2007-11-26 12:23:05
Hi,I always had this concern about accessing session beans located in a remote app server.EJB uses rmi-iiop for networking and as such the end user cannot have precise control over the ports opened to communicate with the remote beans.Yes, with patterns like business delegate and session ...

Should all the input parameters to a method be final?

3089 byte By sri1025a at 2007-11-26 12:41:57
Many good-programming-practice-related books say that the parameter to a method should be declared final.For ex, like this:public void foo(final int bar) {}The argument those books defend is that, what if you change the variable somewhere in the middle and you want the original value that ...

Performance enhancement

913 byte By dave123a at 2007-11-26 12:47:26
Hi All,i'm accessing data from the server through HttpConnection to Blackberry mobile unit in the following format -| 123 | abc | newyork | xxxx | 111 | dfgr |....|....|....|...............| 234 | aaa | rock | gggg |... ....| ..... | .......each pipe separated data elements represents a ...

Undo/Redo of RDBMS committed transactions

898 byte By sri_bitlaa at 2007-11-26 12:49:46
Hi All,I have the following scenario and wondering if Command design pattern would be a solution and looking for your valuable advice.The application I am working on is a three tier application with front end Swing, middile tier application server and back end RDBMS.As the user makes changes in ...

A start in design pattern

214 byte By ashexa at 2007-11-26 13:01:59
Hi guys,I want to start learn j2ee design pattern , i browsed net but not got any significant point from where i can start. could anybody suggest me from where should i start .Thanks in advance

Bette way to referenced tree model nodes from UI to perform actions on them

1332 byte By jfreebsda at 2007-11-26 13:04:05
A singleton facade is built. Its init() method loads several "tree model configs", each of them referenced by a name.This singleton creates a Project instance for a given "tree model config" calling the facade method -> createProject(String pjrName, String modelConfigName)When the Project is ...

Design Question for data structure:

1291 byte By jamesEstona at 2007-11-26 13:10:12
Hello All,I have a question as to the best design for some DAO objects that I need to decouple and I'm not sure the best way to do this. The problem is the objects are very tightly coupled together throughout the code and jsp's and I need to separate them out for easier maintenance.The data ...

Class relationship design problem

1080 byte By hunter9000a at 2007-11-26 13:12:13
I have a situation where several classes are of the same "type", but they each have different behavior. They don't really share enough of the same functionality to have a heirarchy, but I would like to be able to treat them as the same type as they will be stored together. Here's an analogy, ...

Is this just container pattern?

2633 byte By a3cchana at 2007-11-26 13:17:00
Hallo pattern-lovers,I have troubles finding design pattern that covers relation between Televion and Doodle in following example. Example:Purpose: Offer only read only methods of given object.// Commonality between Doodle and Television// Not neccessary for example, but good practice ...

Help needed refactoring my AutofillTextField

16970 byte By gewittera at 2007-11-26 13:26:53
Hello everyone,Implementing an autofill feature for JTextField raised several design issues, and I would like some help.First, source code, demo and a diagram can be found on my JRoller entry: http://www.jroller.com/page/handcream?entry=refactoring_challenge_autocomplete_jtextfieldMost ...

want to sort tables inside a complex mechanism, what can be the approach?

3606 byte By vj_makera at 2007-11-26 13:40:21
I have a situation where first we are fecthing some ids(list of say version ids using hibernate form database) then keeping those list of data in a Pager Object(Paging mechanism displays 100 rows per page out of complete sa 100 or so.)This pager class does two things one takes whole list of ids ...