Factory Pattern and Interface

340 byte By rajpuniaa at 2007-10-1 22:16:48
I have Created an interface named as IaddressDetailsDao classwhcich has so many methods I am implenting partialy by declaring it asabstarct class.whcich has the method signature as below_public abstract IaddressDetailsDao get AddressDetails();My doubt is what will be the return type of this ...

What is the best way to use

1685 byte By vpalkondaa at 2007-10-1 22:19:30
To all the gurus,I am providing an API for others. The API is for doing couple of operation.So I have created an interface with those operations.interface Connection {public void doOp1();public void doOp2();public void doOp3();}Lets say I have implemented that intreface in class class ...

Synchronous vs. asynchronous routers

2237 byte By uttumuttua at 2007-10-1 22:21:38
Hello,Basically, I've found that the Router pattern is nice for implementing operation queues, as it enforces liveness quite trivially.However, there are two main kinds of Routers: synchronous ones, i.e.class Router {Object queueLock =new Object();// this is the only public method!public void ...

Elegant ("by-construction") solution to ordered lock-acquirement?

6377 byte By uttumuttua at 2007-10-1 22:21:48
Hello,Let's have a very simple example with three classes, Left, Router and Right. Left and Right act with each other through the Router. Here's a simplified code example where object connections between Left,Router and Right, are assumed to be known:class Left {public void actOnSelf() { ...

static VS Private constructor in singleton

169 byte By rajpuniaa at 2007-10-1 22:29:13
Dear All Can u tell me waht is the basic adiffernce B/w static methpd call and singleton pattern.Even in bothe the case we carete only one ibstance.

Java Project Architecture

306 byte By somu.srinivasa at 2007-10-1 22:36:06
can any body give me the project architecture in CMM Level companies?Does they are follwing any specific rules to frame this architecture?Thanks in Advance Srinivasa Rao Somu Software Engineer Netsoft Global Informatica Pvt ltd. ...

BEA Weblogic Portal Question

437 byte By ElGatoRojoa at 2007-10-1 22:38:15
I am trying to decide if Portal can do the following?Create a portal site that will act as a template. I want to create several pages that have certain portlets. After that, I want the user to be able to come in and basically create instances of the portal where only the content changes ... all ...

What is High Level Designing

133 byte By vjoyweba at 2007-10-1 22:42:39
Can anybody explain High Level Designing in details with comparing it Low Level Designing.thanks in advancevijay

Multi-threaded server with independent IO

975 byte By enigmassea at 2007-10-1 22:43:08
I have designed a multi-threaded server which handles XML via sockets. I am running into the issue that when I try to send data to all of the clients, I have having to iterate through a shared resource where the sockets are stored at. I do not have this problem with reading because it is done ...

J2EE helper and handler?

158 byte By Susan_Tana at 2007-10-1 22:43:51
if a class is named with the 'helper' (eg xHelper) or 'handler' (eg yHandler), what is the difference between a helper and handler classes? Thanks.

What pattern for persistence layer of swing app

312 byte By JUCKKYa at 2007-10-1 22:52:14
Hi,I have a swing application that needs to perfom a great many database actions. I have currently architected it such that I have a singleton class that contains all of the methods and interact with the DB via JDBC. I have always wondered if this is the correct ...

Naming of view components

897 byte By alexflinta at 2007-10-1 22:55:18
I'm trying to implement an application using a fairly typical MVC architecture. Basically I have a number of classes which represent my data, a variety of interfaces (such as tree interfaces, recordset interfaces) which some or all of my data classes implement, and a variety of UI components ...

Organizing classes into a hierarchy.

1025 byte By AlexZorina at 2007-10-1 22:57:09
I have an application where it is critical that I can organize a set of classes into a hierarchy and then load each one in order.The reason is that I have code similar to this:try{Class clazz = this.defineClass(className,data,0,data.length);}catch(Exception e){e.printStackTrace();}Say, for ...

One day and counting

517 byte By at 2007-10-1 23:05:54
So, they've been bust for over a day now - and it seems that the number of effected forums is growing.Surely such a poor performance in something as simple as a web forum isn't going to install much confidence in the posters here as to the ability of sun to support software.As far as I can ...

modeling dominoes game

385 byte By zsuna at 2007-10-1 23:08:04
Here is a question I've been asked in an interview :design a dominoes game can you please give me an exmaple of a complete and detaliedanswer ?(classes I'll have , objects,methods,relation of objects)I want to learn how should I answer to these kind of questions .(BTW I don'r care if you'll ...

How can i prevent a user to login more than once at the same time ?

349 byte By gariositya at 2007-10-1 23:12:59
Supose there are a user , D .and i am using thread and socket in the application.once a user logined in , it will open a new socket .Well , but D is trying to login twice at the same time ... and my thread is opening two socket for him .... , how can i prevent that ? *thanks for help and sorry ...

Looking for a decent Plugin API/Infrastructure

572 byte By ted.steena at 2007-10-1 23:14:19
I'm planning to support dynamic plugin loading for a project of mine.It is important that the plugins will be able to load/unload during runtime and it would be a plus if it is possible to communicate between the plugins (i.e. have dependencies).I've been looking at ...

Spring and Hibernate.

324 byte By nangiasharada at 2007-10-1 23:15:00
HiCan someone please let me know why there is a need to integrate Hibernate with Spring. Sping provides JDBC templates to work with persistance storage so why use Hibernate.I know Hibernate is O/R Mapping framework. I need some concrete differences with what i can do with Hibernate and not with ...

testing

12 byte By DrLaszloJamfa at 2007-10-1 23:15:31
1,2,3

Doing stuff at Application Server startup

990 byte By tv1970usa at 2007-10-1 23:17:58
Hi all,Sorry I have to post it here but my posts in "Java Programming' are not showing up. How can I do some stuff when the application server is starting up. I am using JBoss 3.2.3. At the Application Server startup I want to read a Properties file, and set its values in a class. For example ...

HMVC, MVC or something?

1416 byte By andreas@swedena at 2007-10-1 23:18:36
Hello,I'm trying to solve a very common problem in the world of user interface design. How do I design for two UI's to interact with each other? I looked into the HMVC pattern, but it doesn't really make sense for this problem.Suppose I have the following hierarchy of controllers:A/ \BC/ ...

Pass by reference is not helpful when dealing with Integers/Booleans... etc

1851 byte By enasyunisa at 2007-10-1 23:18:40
You would think that passing by reference would allow you to mainpulate objects in the arguments field. It is great and helpful when adding new items to an arraylist but it fails to add any value when dealing with objects that are not mutable like Integers and Booleans... You can not modify ...

produce cpu usage

184 byte By navigatora at 2007-10-1 23:22:15
How do i write a java code which can produce cpu usage 30-70% // how ?cpu usage 70-90% // how ?cpu usage 100% // this can be done with a while loop .

Break-Away forum

326 byte By at 2007-10-1 23:25:25
I wonder how viable a "break-away" forum would be.I mean - whats stopping us knocking up a decent forum ourselves and moving over to that?There's probably open-source forum software - and if not - Im sure we can get the resources to get working on one.Any one up for thinking about this ...

Separate gui from hardwareclasses

354 byte By wild_piga at 2007-10-1 23:29:15
Hey,i'm wondering how can i in best way separate gui from class that works with for example with hardware.f.e.[code][public gui_class{ JList lista; listsEvents(call hardware_class_function);}public hardware_class{ hardware_function1() ...

Help with encapsulation and a specific case of design

5447 byte By Drake_Duna at 2007-10-1 23:30:03
Hello all. I have been playing with Java (my first real language and first OOP language) for a couple months now. Right now I am trying to write my first real application, but I want to design it right and I am smashing my head against the wall with my data structure, specifically with ...

Hibernate & JDO

630 byte By sim085a at 2007-10-1 23:31:28
I am fairly new to bout these two technologies. I made a research on Hibernate and JDO and what I could come up to is that bout do nearly the same thing. Now I still am not an expert on how to program with them (still waiting for my JDO book to come). However I do have a bunch of questions to ...

Question about Encapsulation

1774 byte By _dnoyeBa at 2007-10-1 23:31:55
I have two classes that have a parent-child relationship sort of.interface IProject{void doIt();}class Project implements IProject{List architectures;public doIt(){}}class Architecture {Project project;}The question is how do I identify which project the architecture belongs to ...

Transfer Object pattern question

995 byte By Marcelo9a at 2007-10-1 23:51:22
Hi, developers!I created a Transfer Object pattern class, that has an array field. See below:class TOClass { private int[] values; //notice that I am using clone() method public int[] getValues() {return (int[])values.clone(); } public void setValues(int[] values) {this.values = ...

Reverse Engineering Process of Java Code in Rational Rose

336 byte By Nisha_Perota at 2007-10-1 23:52:47
I want to know all the steps in very detail to reverse engineer the java code in rational rose. I have very little idea about Rational rose, class path etc. I have one very big folder of code and I want to reverse engineer this complete folder. so please explain indetail that class path of ...

Are DAOs part of the business layer?

171 byte By jonnybeckera at 2007-10-1 23:57:33
Hi,are DAOs part of the business layer? I have to write some stuff for school and have to assign the classes involved in my project.CheersJonny

About Geronimo

282 byte By sprisysa at 2007-10-1 23:59:55
hi all,do anybody know about the recently emerged geronimo appilcation server ,i saw in their website that it lags in some features like hot deploy etc.Whether it may have any effect on the Application Server market with emergence of JDK1.5 thanks

DAO implementation question

1077 byte By LORDs_diakonosa at 2007-10-2 0:00:30
I am using most of the pattern from the core j2eepattern for the DAO factory and I have a question on what would be best. I have the daofactory and the concrete daofactory, for only one db now, then I have classes and a dao for each class. Example I have a class Person which has its own dao the ...

Decorator pattern in reading configuration

1084 byte By iamiqrka at 2007-10-2 0:04:16
Almost all applications have some configuration properties they use for various purposes. Typically you have Key/Value pairs representing the property names and values. Therefore, internally, a Properties or other Map is a good representation for these configuration settings.So while there's a ...

FrameWork

1164 byte By Old_doga at 2007-10-2 0:08:25
Hi, I just join a new company and they are following the typical J2ee presentation/business/data/eis tier architecture.However, I am a little puzzled by their framework. Among other things, I am particularly border by the following:1) Their Action object <has a> Command object which 1.1) ...

Addition to the Strategy Pattern

1081 byte By Landrus_dea at 2007-10-2 0:13:31
When you read the description of the Strategy Pattern of the GoF book, you come across the paragraph, that the stategy pattern becomes complicated when the number of strategies increases. The explanation is, that the caller of the strategies must know when to apply which concrete strategy.This ...

Query on Objects Design

1209 byte By tekbonda at 2007-10-2 0:14:57
Project details: A distributor has attributes likeDistributordistIdselectedYearbucontextasOfDatefoCodefoNamedistNamedistStrAddrdistAddrLn2distAddrLn3distAddrLn4Each distributor can have zero or 4 deal types.Distributor Deal Typedeal typepayout typeEach deal type has one or more details likeDeal ...

Fast Serialization

3310 byte By at 2007-10-2 0:17:45
Ok - here's the deal.Im currently passing objects between two instances of an application. Im currently using standard Serialization to get an "on the wire" format. The reason for going the Serialization route is that new classes are added and changed frequently by a large team of varied ...

learning software design - resources?

706 byte By WillTrya at 2007-10-2 0:29:44
Hellowould like to learn howto design good software. I can code simple stuff and solve simple small problems that do few things and I want to start in applications development (several features = several problems / code good organization + maintanability + reuse + logic code and user interface ...

What is better

342 byte By sunxray@hotmail.coma at 2007-10-2 0:31:02
Hello,I have a GUI app and i want to extend it. I'd like to modified it and i'm looking for the rigth approach.-The first idea is to modified the source with the feature thati nedd-The second idea is to use adpetr pattern or composeView patterWhat is the better solution for ...

Loging a distributed application ? any patterns/framework available?

414 byte By sudarsona at 2007-10-2 0:37:42
Hi all,I want to write a logging mechanism to an distributed application using Log4j such that I need to get the logs of the whole application in a single file.Currently I have logged that application that runs in a single machine.but I want the log mechanism to work when the application gets ...

Data Access Manager

4030 byte By Torajiroua at 2007-10-2 0:39:45
Hi allI had to design a data access layer framework (yes, I DID suggest Hibernate at the time, duffy ;-)) and came up with a rather good solution, IMHO. As the data access should be generated by a tool, there's but one possibility : map one DTO per table and populate them in the DAO. That's ...

oo design questions

1590 byte By WillTrya at 2007-10-2 0:40:38
HelloI am trying to sketch out a OO design for this small app with a User Interface.If you guys and gals could offer some comments to the options presented...This example program will have a UI that will show a list of "produtcs". "Product" is a class and all "product" objects are saved in an ...

design an auction site

490 byte By sebvena at 2007-10-2 0:46:51
Hello i would like to design an internet auction site to buy and sell things: like ebay.comI would like to know what are the main components for such design?it is enough to USE MVC?Model: set of user databasesView web site, java appletController: security manager...do you see other important ...

XML Files and Database

595 byte By ashokvytlaa at 2007-10-2 0:47:48
Hi,I am developing a GUI tool for reports. I first show the user with a GUI using which he will build the query and generate the results with the query. Now he will save the results.These results can be used as reports by another GUI. Option one is I want to save these results in XML file and ...

which pattern to use?

310 byte By uryl99a at 2007-10-2 0:53:35
I have an interface 'Rule' which defines 5 methods. I have 2 classes 'ShiftRule' and 'GroupRule' which implements the 'Rule' interface. At run-time i will be using either 'ShiftRule' or 'GroupRule'. What pattern I should use for the above case? Please provide a link. Thank ...

Collection vs Iterator

493 byte By Ctrl.Alt.Dela at 2007-10-2 0:59:22
We have a class (lets say Item), which holds a collection of another class (lets say Bid).Adding and removing of Bid's can be done only by the Item class. The clients that use Item class, would need to to loop through the bids mostly. So is it better to return a Iterator or a Collection? We ...

Moving Target DB and Abstract Schema

1023 byte By dronezonea at 2007-10-2 1:00:01
I apologize in advance for seeming clueless. My explanation is this: There is no money. I have inexperience staff. I've been away from building architectures too long to be specific. I can't buy a contractor. I need some advice.We are converting many Access applications to ...

Design of first distributed architecture

1958 byte By theAmericana at 2007-10-2 1:02:08
Okay, so I'm trying to design and implement my first distributed project, and I want to make sure my general design is okay before I start. Like I say, I've never used J2EE before, and I'm still learning about it. This is very general.Problem: Design a login system complete with the ...

Pl help on Facade Pattern

1108 byte By rajpuniaa at 2007-10-2 1:04:49
// This class has Few getter and setter public class Address { String street=null;String city=null;public String getCity() {return city;}/** * @return */public String getStreet() {return street;}/** * @param string */public void setCity(String string) {city = string;}/** * @param string ...