OO design is provoking

3849 byte By alta at 2007-10-2 18:17:08
Hello,I want to build a good website rapidly that is easy to add new features. I want to program my site in a platform-independant programming language so it can be ported to different platforms easily.One suggestion is to program the interface using XSLT. There are XSLT compilers that ...

good books for oo principles

107 byte By ninjaprogrammera at 2007-10-2 18:24:51
Does anyone know any good books that explains oo principles and have examples in java for beginners?

EJB3's impact on design patterns

1778 byte By gregrwadea at 2007-10-2 18:32:46
Well, I'm just starting to get into EJB3, and enjoying what I work with so far. I'm curious how EJB3 may impact my own use of certain design patterns, and I'm looking for input. It's a trade off between faster development, and "better design". I work on a moderately sized J2EE application, ...

Competing consumer pattern example.

228 byte By Sailua at 2007-10-2 18:37:24
HiI am looking for an example of competing consumer pattern.If there are any articles or web site references that you are aware of please let me know. It will be really appreciated.Thanks,Sailu

Super() constructor must be first. Is it right?

2864 byte By valjoka at 2007-10-2 18:50:05
My previous discussion abot the this issue has been removed. I must reconstruct it to be aware of advantages, disadvantages and bypasses over the restriction.Obvously, the restriction prevents us from writing some perfectly valid code:class Unsigned7BitOscillatorInputStream extends ...

UML

134 byte By Java12a at 2007-10-2 18:58:22
hi everyone,does anyone know how to get the sign ">" for the association, when doing the class diagrams?thanks

uml class diagrams

169 byte By Java12a at 2007-10-2 19:01:36
hi,when you do a web application you have to do a diagram for each use case, how would you apply this technique to desktop based applications?thanks

How to replace if else loop for object creation

234 byte By j2eeprofessionala at 2007-10-2 19:04:25
i have to instantiate objects based on some if conditions. e.g. if this then create this object else if this then create this object etc....how should i go about dealing with this prob. I am sure there must be a smater way out.

What type of Class can I use?

474 byte By jimc08807a at 2007-10-2 19:12:23
Hi,Here is my dilemma.. I have 2 classes.. We can call them Policy and Quote. I need to have them on the session. I also have a class, BusinessModel, that will also hold onto these "same" objects. This way I can pass BusinessModel around with all the objects I require in my app..My dilemma is, ...

State of object

2338 byte By avaj_rocksa at 2007-10-2 19:21:50
I wanted to create Items and be able to display it. The user will do some selection based on what i had displayed. But the constraint was when am asked to add new items i should do it without modifying existing code. I thought factory pattern would solve the issue. I was able to create a ...

Transition from the front-end class to the back-end class(Composition)

1779 byte By faitha at 2007-10-2 19:23:24
Hi there,I have a program that is using 2 classes in the same package.Oneis called Add_Word,the other is Edit_Word.Both have a seperate GUI.I have created one class(Add_Word) with a reference to (Edit_Word).The idea is to allow the user to enter a list of words through a text field and pressing ...

Message vs service.

14577 byte By Sailua at 2007-10-2 19:25:00
HiI will appreciate if any of the experts here can take a quick look here and share some input which might be useful. I have made a post here earlier: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=385522&SiteID=1Any help will be appreciate.Thanks,Sailu.Here is some details of the ...

Passing Parameters as Maps: Good or Bad?

2605 byte By ktm5124a at 2007-10-2 19:30:57
I have been thinking about whether passing parameters as a Map of objects is a good idea or not when one is simply using POJOs. Of course, I am only talking about doing this in a few select cases. An example is an online service that keeps track of its users in a database. Think about the ...

Good or Bad Design

1828 byte By ssv45324a at 2007-10-2 19:40:21
The following is the design for a reporting module. Any suggestions on the same would be appreciated.1) ChartGenerator implements Generator.Attributes ? private int ncompID = UNDEFprivate int njobId = UNDEFprivate String storedproc = ""private java.util.Date fromdt = nullprivate java.util.Date ...

Modeling methods calls

600 byte By necro_ignisa at 2007-10-2 19:40:46
hi, I'm really trying hard to getting into modeling my applications before coding. So far I've found it to be very useful, especially class diagrams and sequence diagrams. However, sometimes I find that after a long day of coding I begin to get lost inbetween method calls within the same ...

Java/JSP Application Architecture Question

451 byte By Mitraya_Namahaa at 2007-10-2 19:47:06
hi, i am working on a JSP/Java/Database application. fyi, i use JBuilder. how can i figure out what is the type of architecture/model used for this project?also, it seems that it uses "Persistence" and "Object Model" concepts. where can i learn more about this type of architecture?also ...

Read content from PDF file

125 byte By Rahul_HomePage@sun.coma at 2007-10-2 19:50:09
please suggest how to read content from PDF file.. If possible with Sample CODEThanks & RegardsRAHUL

Is this a Facade ?

1860 byte By SrikanthBasa at 2007-10-2 19:50:39
Hello friends,Should I say that the Manager acts as a Facade ?public class A{ public void methodInClassA() { }}public class B{ public void methodInClassB() { }}public class Manager{ private final A a; private final B b; public Manager() {a = new A();b = new B(); } public static void main(String ...

NIO Server

1218 byte By aleksndar.valcheva at 2007-10-2 19:56:17
Hi to all,I have to create a server. Server will be bridge between clients and another server. I want to make architecture with worker threads. When selector selects a key it is passed to worker thread, if available. If worker thread is not available selection continue until worker thread is ...

Method Placement and Optimization

861 byte By gregor42a at 2007-10-2 19:57:35
Assume that we're going to create a lot of instances of a class. Further assume that they're all going to store a value that is encoded somehow. Therefore in addition to accessor methods, methods need to be created to encode & decode the data.My question is, in terms of performance & ...

Code Block / Message to List

1722 byte By timmeeeeea at 2007-10-2 20:02:36
When I'm coding my apps and I'm going through lists ( very often ). I find it tiring to create an iterator or for loop for every little thing. I'd love to send "Code Blocks" to a List, a la Ruby / Smalltalk; and every element in that list has the code block executed on it. Is this in some ...

Class diagrams for Struts and EJB's

442 byte By help_eachothera at 2007-10-2 20:05:53
Hii JavaitesI have developed a application in Struts, EJB in Weblogic.Now i need to create the class diagrams of my application.I am thinking of reverse enginerring it using Enterprise Architect.Now i want to know in my class diagrams, wht classes will come ?Will it include my action classes, ...

Spider Web Dependency Diagrams

1079 byte By aolszowkaa at 2007-10-2 20:06:22
Hello All!First off let me apologize if this is the incorrect forum to post this question. Now on to the question, I抳e been searching for a program that could give me a visual representation of the dependencies required for my program (much like a spider web looking diagram).I抳e done a bit of ...

Mutli process C program to Java Design

993 byte By stdouta at 2007-10-2 20:06:50
I am currently in the midst of migrating my existing C apps to sit on a Java platform. The app is legacy and interfaces largely with numerous hardware devices via RS232 with a main controlling program that sequences the business logic. Imagine a manufacturing system with many conveyor belts, ...

Java Architect

125 byte By incaa at 2007-10-2 20:10:15
I was wondering if any one can architect a online virtual trading system. Volunteers would be compensated financially.

Pattern Extraction using java.lang.reflect

567 byte By crys.redmana at 2007-10-2 20:15:22
Hello.I'm working on a project where I need to create Class objects out of all of the .class files in a directory and in any subdirectory. I'm trying to use the Class.forName() method.My problem is that I'm not able to pass a path to the .class file in the Class.forName() method. But I ...

java client while loop PLEASE HELP!!!

5333 byte By trscookiea at 2007-10-2 20:19:53
dear all, i have a very important assignment and i require help badly.i have a program that connects to a server, the server works fine however i have a problem with some of the client code. my problem is that the client uses a function to connect and the same function to receive the code using ...

Design Pattern Question

501 byte By ssv45324a at 2007-10-2 20:22:49
Lets say in an application there are the following componentsDatabase | |VDAOLayer | |VBO LAYER||VServlets|| VJSPsWhat design patterns does the above incorporate?My guess - DAO pattern.Is this a good enough design for a SAAS(Software as a service) application?What would be the drawbacks of this ...

Design to generate a Fixed-Rate flow

3685 byte By jdupreza at 2007-10-2 20:31:41
Hello,I have a Java client that has to issue requests at fixed rate to a remote server.The original programmer did it genuilely (and monothreaded):public class Client { public Client(int rate) {this.delay = ...; //conversion and rounding algorithm omitted; } public void sendRequests() {while ...

POJO X JAVABEANS

87 byte By maazevedoa at 2007-10-2 20:32:45
Hi there, What's the diference between POJO and JavaBeans ?Thanks

Difference between proxy pattern and session facade pattern

125 byte By anas_sauvegarde1a at 2007-10-2 20:36:08
Can some one explain me in simple terms the difference between proxy pattern and session facade pattern ?Thanks

Caching without Stale Objects

1086 byte By pauldeasona at 2007-10-2 20:41:43
Hi,I'm looking at caching various objects in memory but I cannot work out how it is possible to overcome the problem of child objects becoming stale in the cache:For example, say I had an Order object in cache with a reference to a Contact object. However, the Contact object is also used in ...

How to share Singleton in different JVM?

162 byte By t_rakesha at 2007-10-2 20:42:27
How to share Singleton in different JVM?Suppose we have two application installed at different server, how to share the same Singleton?Rakesh

design patterns

35 byte By roshca181a at 2007-10-2 20:42:56
What means "Design patterns"

Shall I use Value Objects?

340 byte By Kavansa at 2007-10-2 20:44:16
Hi,I am creating a web app with approx 25 web pages with not much business logic.I plan to use struts framework.What I wanted to know was, shall I use value object pattern for my web page? Is there some kind of questionaire which I can take to decide whether I should use VO or ...

BPEL Anyone?

449 byte By Saisha at 2007-10-2 20:48:09
I saw an excellent presentation on Seam, and aside from its integration with JSF and EJB 3.0, I was particularly interested in how they worked in JBoss's version of BPEL, jBPM. I'm not 100% sold on BPEL, but it definitely seems like a great way to reduce coupling and complexity in larger ...

Users/Roles design question

2062 byte By juanpetia at 2007-10-2 20:51:28
This may be quite trivial for many of you, but it's not my case...I am trying to implement roles on a user class I've created. What I thought of was creating 3 classes:- Role- Roles (a container for all the existing roles)- UserEach User should be able to contain none, one or many Role ...

DAO and Inheritance

154 byte By Sarah_Mahdavia at 2007-10-2 20:54:00
Hi,I have 2 objects that the first is extends the second. should i consider any thing in their DAO class or their DAO are distinct?tx

DAO pattern Confuse

316 byte By musica at 2007-10-2 20:56:29
Hi all,I have 4 tables deal with 4 DAOs. But I have a funcion called search() that get infomation from 4 tables above. Will I put this function in which DAO ?.I see each DAO work only on self table. such as searchBy..., delete, update. But a query complex we will put in which DAO ...

pattern question - inheritance

1295 byte By aamya at 2007-10-2 21:01:34
Here's my pattern question:Vehicle ObjectSUV Object extends Vehicle ObjectSedan Object extends Vehicle ObjectDecisionMaker Class -- Decides what vehicle to use in the program depending on the weather e.g:public Class DecisionMaker{public Vehicle whatVehicleToUse(){if(raining) return new ...

tool development in Java

601 byte By searchandresearcha at 2007-10-2 21:03:23
I want to develop a tool in Java. It is a desktop tool with about 20 or so screens (some of which are complex using multiple controls that need to update each other on the same screen, and others are normal JTable based ones etc).I want to desing and develop the code in such a way that I write ...

Comparing Two Design Ideas

2746 byte By ktm5124a at 2007-10-2 21:08:12
I am developing an online service and I need to validate users and process text messages. I have two ideas for this. Can you tell me which idea you think is better and more OO?1) Create a User object to validate the packet's sender every time I receive a packet. The User object will be ...

MVC and chess game design

483 byte By Galaxya at 2007-10-2 21:08:55
Hi,I am trying to do a chess game using mvc. The view obviously should handle all the drawing stuff and the model the logic, which means in mvc I have to have a pawn concrete class (model) and a pawnviewer class (view)?If that is the case is there a better solution than to check for the chess ...

MVC sucks

3465 byte By ktm5124a at 2007-10-2 21:15:12
It has been my opinion for a while that MVC sucks. It seems to me that it takes away from the OOness of a program. An object should act reflexively -- a piece should move itself, a message should send itself, etc. -- and MVC puts the programmer in this limited mindset of:Controller -> Model ...

Simple Design question

592 byte By ssv45324a at 2007-10-2 21:19:08
The task is to generate a chart generator -I have two classes for the same -1) ChartValuesGenerator - this class generates the values which is required to plot the graphs.2) ChartGenerator- this class generates the charts which are required. To generate the chart it requires the values ...

web services client interface design

361 byte By badda1ka at 2007-10-2 21:21:19
I am looking into see how i can design a client side interface that will talk to mulitple web services. This client side interface will act as proxy and call multiple web services based on the input from web services clients. Can someone give some ideas/pattens that i could use to design this? ...

Singleton

292 byte By _AM__a at 2007-10-2 21:21:50
Hi, i have a basic question, how many instances of a singleton will be created in a multi threaded environment. 1. As every thread has it's own object... does it mean, every thread has its own instacne of singleton class? thanks in advance..thanksSJ

should I use a framework?

779 byte By drorasta555a at 2007-10-2 21:24:12
Hi GuysI'm making a multi player browser game. The game will have some forms to setup data into the database and the player will be able to check other players data.I will load the players data from the DB into a Bean when the application starts and then just get the other players information ...

Heritage Vs Delegating

191 byte By Euphremea at 2007-10-2 21:31:45
I'd like to have some opinions on each, what should be best used ?I'm a bit confused about wich should be used and when ... And what about Helper classes ?Thanks

Effective Framework Design

257 byte By sreedevi2006a at 2007-10-2 21:34:32
I would like to know how a framework is built.What are the good design steps to be followed for an effective framework?Which are the design patterns to be followed?It would be helpful if anyone could enlighten me on this subject.