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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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(); ...
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
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 ...
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
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 ...
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 ...
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?
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)
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 ...
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 ...
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?
Hi,is there any freeware tool that can create UML from a simple .jar-file or a set of .class-files ?Cheers/Andreas
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 "". ...
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 ...
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.
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 ...
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
Please help me out to design better exception handling framework.
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 ...
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 ...
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 ...
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 ...
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
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...