aspects for stuff OTHER than logging

109 byte By jvaudry at 2007-9-30 21:32:01
Hi,Does anyone out there user AspectJ for anything other than logging concerns? I'm interested

Creating new instances of objects via methods

907 byte By Phoresis at 2007-9-30 21:35:51
OK, i have some code similar to below, where I want to create a new instance of the class BookRecord which takes parameters from Book b, which is an instance if the class Book.//This is code from the Libraray classpublic void addBookRecord(Book b, String author, String title) {bookHolder = new ...

State Pattern problem

987 byte By lgarcia3 at 2007-9-30 21:41:03
I have try to solve this problem in several ways with no result. Basically I created an Object Oriented Database (OODB) using a set of tools called ObjectStore. Anyway, I created a small server so I can deploy my database on the internet. I have a ServerSocket that accepts calls in my socket ...

Design Help

593 byte By Ramki at 2007-9-30 21:41:37
I have to show a summary on my home page , this summary I will get by executing a database select query. The query is taking 7 to 8 mins for execution (as there is a huge amount of data in table). I'm using oracle 10g oc4j as my j2ee container. Please let me know how can I achieve solution for ...

Best design pattern for this case senario

368 byte By sbucareer at 2007-9-30 21:42:10
Have a look at this link. http://www.yexon.co.uk/uml/Doc3.htmI have also provided a solution to this question at http://www.yexon.co.uk/uml/Doc1.htmBut I am seaking other ideas. NOTE===========This is not a school work. I am designing free academic site for student willing to embark into ...

Pattern Problem

878 byte By _dnoyeB at 2007-9-30 21:43:38
I have a set of interfaces I want to implement. I have a set of DAO classes that handle my data. The DAO classes talk to each other quite a bit.I did not want the DAO classes implementing the interface because i wanted them to focus strongly on just DAO stuff. So what I did was create wrapper ...

class diagram!

2049 byte By HELLOOOO at 2007-9-30 21:46:44
http://hk.geocities.com/iamsupersuperman/ClassDiagram.jpgplease give comments on my domain class diagram~~~and help me think of some attributes for the "payroll clerk" and "HR officer"thanks!!!!!11this is the problem statement...ABC Company requires a computerized payroll system. The system ...

Extending a JOptionPane is difficult

842 byte By jvaudry at 2007-9-30 21:48:53
Hi guys,Have you ever tried to subclass a JOptionPane? The usual way to use this class is to call one of its static showX methods. Those static methods proceed to create an instance of JOptionPane.So here is my problem. I subclass a JOptionPane to add some custom behaviour. However, when ...

Component internal/external business object's methods

2838 byte By quereinsteiger at 2007-9-30 21:52:56
We have some Business Objects which typically look like this:Article- id- descriptionThen we have an interface called Article which contains getter and setter methods like public String getId(). There is a concrete class for each business object interface.Why do we have interfaces for business ...

getter method versus the dot operator

840 byte By afreen_0 at 2007-9-30 21:53:31
Had a general design question. What is a better way to access instance variables from within the class--use the variable name directly, or use an equivalent getter method? For example:Class A{ private int B; ... public int getB() {return B; } public void doSth() { int c = B; int d = getB(); ...

Rule Based System

283 byte By RashmiKant_ at 2007-9-30 21:59:56
Hi all,I am currently working on a project which required to Implemented 500-600 rules in the System. Some of them are global Rules and some are just module level rules. Is there any pattern exist for Rule Based System? Thanks in AdvanceRashmikant

Object manageability pattern

602 byte By Panda_Santosh at 2007-9-30 22:01:37
Can anybody help me in specifying a pattern for Object manageability ?What I need to achieve with the pattern is to > object created needs to be preserved or persisted with all reference to other objects,updated if any changes to the object and retrieve on demand.I know we use Serialization ...

Software Complexity Measures

249 byte By jmcq at 2007-9-30 22:06:31
Don't think I have the right forum but I hope someone can help.Does anyone know of any tools (preferably free) that can be used to calculate complexity metrics (LOC, McCabes, Halstead, function points etc.) for Java code.Thanks

Higher level design question...

1327 byte By jordan7 at 2007-9-30 22:09:42
Hi there,Rather high level question here, this forum seemed to be the best suited for it. I am designing an application that will have many components. CMS, Blogs, Forums, Data specific to registered users, ecommerce, image gallery etc.Alot of these components I need already exist as open ...

Minimizing the use of instanceof

822 byte By lotharp at 2007-9-30 22:14:48
Maybe the following problem has a very simple solution, however i do not see it:Consider the following simple design:class a{ class b extends a{...}class c extends a{...}}Now I want to overwrite Object.equals() in the following way:equals(o) == false if o ist not an instance of class aelse ...

Can BD be implemented using Service Locator?

253 byte By matjaztr at 2007-9-30 22:21:26
I wonder if Business Delegate can be implemented with Service Locator pattern to cache BD instances?I don't like to create new instance of BD for each method call to EJB tier. Can I do this somehow else?Having static methods in BD?

UML-Tool (ArgoUML 0.16.1)

276 byte By robinV at 2007-9-30 22:21:46
hello folks,so i use ArgoUML 0.16.1 and i can't get the Sequence Diagram Option to get enabled.is that not possible in this version or .. how to? (tryed argo mailing list and google already..)(will try other tools together wiht eclipse later, too)

I'm Anti-AOP

1095 byte By hookomjj at 2007-9-30 22:29:05
I know a lot of developers are "warming" up to AOP and what it has to offer, but I've become increasingly disenchanted by the whole idea.What ever happened to type safety, readability, and test driven development? Things like the composite pattern, decorator pattern, etc can offer the same ...

Multiple Inheritance problem

2087 byte By sg9ae@yahoo.com at 2007-9-30 22:32:46
Hi there, I have got a design problem that I cant get rid of and would appreciate someone's help (as it must be a common one!) To simplify matters I will use an example and not the real entities. I need to model to following business rules:* create a processor hierarchy to use in a polymorphic ...

Serialization of an Object containing an opened database connection

195 byte By sg9ae@yahoo.com at 2007-9-30 22:38:08
Hi everyone, My question is simple: If you serialize an object containing an active databse connection, will it be de-serialized with that connection active and ready to use?

Create UML from *.jar

142 byte By Nitzer_Ebb at 2007-9-30 22:38:29
Hi,is there any freeware tool that can create UML from a simple .jar-file or a set of .class-files ?Cheers/Andreas

Qerying several times.

813 byte By KVKVKV at 2007-9-30 22:45:29
I need to have different product information from multiple tables for different categories in the server cache or I need to fetch from Database every time. What will be the better way. Solution 1: I can query upfront from DB and can crate objects in the server(10MB data). Over heads are these ...

Design 101: Create a TextReader to wrap BufferedReader. Adapter? 3 question

5916 byte By PaulPhuoc at 2007-9-30 22:46:12
Context: I want to learn more about java API and to know when to apply the appropriate pattern if there the need is justified.So, I create a wrapper around BufferedReader to create a text file reader. See code 1 and code 2 as usage.Question:1. Design-wise, is this wrapper a simple wrapper and ...

Re-using existing client application minus Swing.

1526 byte By Egg_dog at 2007-9-30 22:48:28
Our company has developed a desktop application over the years and I'd be comfortable in stating that it's close to legacy status. The application has a Swing View and throughout the years, unfortunately, the BL and the presentation layer has become tightly coupled.A challenge has been given ...

using 'use cases'

504 byte By a_sun at 2007-9-30 22:48:58
Hi I was reading a couple of articles about use cases . I understand the concept of writing simple text and explaining the way the application should work.The documentation talks about writing only text and no charts/pictures.The user commnunity I deal with , like to see the pictures from the ...

Dynamic Factory Method

626 byte By arielah1 at 2007-9-30 22:49:46
Hi All,I'm trying to solve this problem for a while now, but can't seem to make progress.I need a Factory class that will load concrete classes dynamically without first registering them.Normally one would use reflection to load them automatically using Class.forName(..).newInstance(). But ...

MVC Example

280 byte By codecraig at 2007-9-30 22:50:29
Hi,I am looking for a simple example deomonstrating MVC..perhaps a simple UI which has a number that a user can press a button to increase or another button to decrease the value. I would like to see how the model-view-controller would be set up for something basic.

Need Some Suggestions

1170 byte By Vishal.MK at 2007-9-30 22:53:45
Hi Friends,This is about improving the response time of the JSPs. I mean I have to display data from a table through a JSP page. The Queries are very heavy. Each time the jsp page is accessed by the user, a database intensive query is executed , which inturn fills the result set and which is ...

Getting a thead back

369 byte By globb at 2007-9-30 22:56:22
I am not sure if this was posted in the corrct place so i have just posted the link here http://forum.java.sun.com/thread.jspa?threadID=573757&tstart=0I am trying to get an object back after i have created it it is a runnable so i am presuming i need to get the thread rather than the ...

Efficient searches -

476 byte By wooly_j at 2007-9-30 23:00:27
Hi,We are having difficulty with efficiency of searches and was wondering if anyone can give some insight into the following?How does google/amazon provide efficient searches, does it cache the information or does it do the searches on the databse?Do you think any of these places use java to ...

Pattern Matching for Forward Slash

539 byte By rprakasam at 2007-9-30 23:13:54
Hello,I am not sure if this is the exact forum for this question,or if there is a separate topic for pattten matching in java in this forum, but anyways, I have a problem.If I have a string with the following format: "37A350//#"and I would want to search for that "//" and replace that with "". ...

JDBC Design Help (Static or Simpleton approach, vs references)

1210 byte By BenBaril at 2007-9-30 23:16:49
In a recent assignment given to me by a teacher at college, I was asked to create an application that involved some data entry of various entities.In doing so, he informed us that a good way to use the JDBC without continously making new connections to the database was to have a DataManager ...

Multilayer Design

250 byte By bovealessandro at 2007-9-30 23:20:22
Hello, I'm looking for theory on mutilayer, I've used MVC and others Multilayer patterns or models but never found the raw theory on multilayer, do you have links to a site o a book a could purchase?..thanks, Alessandro.

DTO, Business Objects and architectural layers design

1051 byte By ifrs at 2007-9-30 23:24:36
Hi everybody,What would prevent one from using Business objects (properties + getters/setters and bevaviour related to a business entity) thru all tiers of a J2EE Web application ?Example : DAO layer populates BO properties, Business layer uses BO behaviour , web layer stores BO in some scope ...

Factory Pattern Usage In Java API

98 byte By vrs at 2007-9-30 23:25:20
Hey all,Plz let me know where Factory Method Pattern is used in Java API! vrs

Java Exception framework

72 byte By gopesh_ksa at 2007-9-30 23:36:14
Please help me out to design better exception handling framework.

Mapping heterogenous object models

701 byte By TheTurtleHawka at 2007-9-30 23:40:54
I have two different object models that contain similar information. My ultimate goal is to transfer the data from one into the other. Is there a utility to can facilitate this? An O/O mapping utility?I have some experience with O/R mapping utilities, like hibernate and castor, and I believe ...

Information about OOD

429 byte By Tarbia at 2007-9-30 23:40:58
Hi all.This isnt really a java question I have but I am interested in the basics of OOD. Mainly the analysis and design aspects. Now I was wondering if you have any basic sites where I can get information to help me? I was mainly curious about how design flows from the analysis models, and what ...

UML Port Semantics

1932 byte By paularmstronga at 2007-9-30 23:42:23
I am looking at UML 2 and wanting to make sure I understand the semantics of the Port connector correctly, and with it the provided-interface (the lollypop), and the required-interface (the socket) connectors.The OMG says that a port 搑epresents an interaction point between a classifier instance ...

Forum / Blog / Comments on images

1154 byte By jordan7a at 2007-9-30 23:50:08
Hi there,I am just trying to design a site for the local tourism site. A couple of the requirement are that:a) There are forums per regionb) Users can have their own blogsc) Users can comment on images of pictures of citiesNow, I had an idea to simplify the whole thing, but I'd like some ...

What is DTO?

154 byte By _dnoyeBa at 2007-9-30 23:55:13
I see lots of discussions here about DTOs. What are they and what good do they do?I know what DAO and BO are. Any relationship?Thanks

migrate IIS to J2ee based web server, then migrate .net architecture to j2e

2050 byte By snake2004a at 2007-9-30 23:59:04
Dear Sir/Madam:Our company has the software product based on the .netframework with the IIS middle ware. because of therequirement of our current market, we need to migratethe whole architecture to J2ee based one. we plan to start with changing the presentation layerIIS to j2ee based one. the ...

DP101: Swiss navy knife is an example of Strategy pattern

275 byte By PaulPhuoca at 2007-10-1 0:10:05
Hi,Is this a good real life example? Thanks.Swiss navy knife is an example of Strategy pattern in the sense the knife handle is the context class whereas the blade is the Strategy interface and different shapes of the blade are concrete strategy classes.

Onshore/Offshore Pattern?

854 byte By Saisha at 2007-10-1 0:13:27
While I would wholeheartedly participate in a general thread on the merits of offshore versus onshore development, my purpose in posting this topic is slightly different.The project on which I am working is about to enter the design phase. We have been gathering requirements and generating use ...

authorization and access rights

985 byte By apalssona at 2007-10-1 0:18:51
Using the existing securityframework in J2EE it is easy to restrict user access to directories or specific jsp-pages. But, if I have custom resources such as images or files which are listed and displayed using jsp/servlets it becomes more difficult.The idea is that the listed contents on the ...

Operators Overloading, Suggested compromise

1588 byte By Jonatan_Ringa at 2007-10-1 0:20:26
The way I understand it the main objection not to support operator overloading in Java is that it has been frequently abused in other languages, such as C++., causing ambigious and bad code. My sugestion for a compromise would be one were only binary operators could be redefined, only those ...

displaying of components from abstract class freely?

316 byte By kl001480a at 2007-10-1 0:23:45
hi,i have a doubt that how can i display the components freely that inherited from abstract class? Let us say that there are a lot of JButtons available in the abstract class but each subclass may display differently. Is there any references for this issue or any patterns/opinions are greatly ...

Value Object

551 byte By dankiesa at 2007-10-1 0:27:02
Greetings. I understand that the VO Pattern makes for a clean integration for data access and I am implementing it in a project. I am using struts and right now I am calling the data access layer from the action class and I'm thinking about throwing the VO returned into the request and ...

dao factory pattern

414 byte By codemonkey77a at 2007-10-1 0:30:34
I'm designing DAOs to go on top of an Oracle stored procedure database.I must use Oracle specific JDBC as there's oracle cursors, arrays etc involved.There's basically no chance that I'll ever be able to use anything but hand written jdbc.So, should I still use the abstract factory pattern? ...

Custom Rules Engine

547 byte By aaugustya at 2007-10-1 0:32:01
Is there a good pattern that I could follow to create my own rules engine. My requirement is that I have a lot of business rules, but since they are kind of static I don't see the need to use a rules engine. These rules don't change and I need high performance. I want to write my own custom ...