help for GP and Design Patterns

400 byte By viaphonea at 2007-10-1 11:58:04
Eagerly need some latest matterials of progress of GP , and some thing about how to improve Design Patterns especially using GP to generalize Design Patterns , I have read <<<Mordern C++ Design>> , but that is not enough , what I need most is comparing diffrient ways of enhance ...

multi-inheritance

529 byte By zhebinconga at 2007-10-1 12:00:46
helloin a school project,there is a "student" object that has a "score" attribute and some methods,and a "staff" object that has a "salary" attribute and special methods too,the third object is "stu_sta" which is both student and staff.it should have both "score" and "salary" attributes.i know ...

diff between data objects & value objects

63 byte By mgreddya at 2007-10-1 12:02:27
what are the differences between Data and Value Objects?

Session Facade Pattern without EJB

429 byte By regita at 2007-10-1 12:12:32
All of the session facade pattern examples that I can find are heavily emphasized on EJB. I am planning on implementing a system without EJB's, and am interested in the advantages of using the Session Facade pattern. Are there any good examples of using the Facade pattern outside of EJB to ...

RMI+JNI vs CORBA

763 byte By cocidoa at 2007-10-1 12:12:57
Hi. I have to choose the correct interoperation technology for a new application we are building and I would appreciate your opinion. These are the characteristics of the application:- Most of it will be done in java, but there will be a c++ module which will be called from the java modules.- ...

how to set role based Authorization in JAAS

137 byte By arunagirinathana at 2007-10-1 12:16:42
how to set role based Authorization in JAAS i had user name , password and role in FileLogin thanks arun .v.

Upload file to remote host using URL connection

375 byte By Nanda_Gopala at 2007-10-1 12:16:48
Hello , I have a requirement where the user selects a file and clicks on upload button in my application and through URL connection I will be connecting to remote host. The user selected file has to be uploaded to that remote host. But when I try using reuest.getInputStream in the remote host, ...

XML or Database Access?

1078 byte By Coheziana at 2007-10-1 12:27:50
Hi,I want ur guidence to do the following project........This project is for report generation in pdf,rtf,html format.But client wants it very fast result....In this client used to collect or summerise the published data in the news paper and provide the same......Client having the team of 100 ...

Problem with facade design. (unsure)

4057 byte By Boeing-737a at 2007-10-1 12:29:36
Hi all.Let me explain my problem.Firstly i have 4 classes, XMLUI, XMLFacade, XMLWriter and XMLReader.[XMLUI] -> [XMLFacade] --> [XMLWriter]|-> [XMLReader]XMLFacade sits between the writer and the reader and the user interface XMLUI.Within XMLUI i have about 6 or seven hashmaps. i need ...

Rational Rose and Java 1.5

381 byte By jxta_goda at 2007-10-1 12:36:28
Hya,Is it possible to use Rational rose with Java 5.0 code ?Is there like an upgrade or anything ?I tried to reverse engineer my Java code (Java 5.0) and it does not work for any classes that have formats that are specific to Java 5.0 such as the way Vector's are declared....anyone had the ...

Pls help

493 byte By feleka at 2007-10-1 12:41:37
Hi,I've a class that uses some values that are derrived from the main class .My problem is when I run the program I realesed that my class didn't get those values.I'm new to java and I want to know If there is a method that refloads the out class after a button click or something else.I look ...

creating a graph with java XML parser

323 byte By gionnyDeepa at 2007-10-1 12:51:49
hi allI'd like to create a graph data stucture defining data relation with an xml.Exists anything usefull?What I want is defining bidirectional relation with two or more elements in an xml file.after that i want to create a java data structure that define the graph tree.any ...

DAO Stratergy

2447 byte By kmathewma at 2007-10-1 12:51:54
We have 3 Bussiness objects say BUSOBJ1, BUSOBJ2,BUSOBJ3,each has different methods calls andeach bussiness objects gets data from different database say DB1,DB2,DB3, Now if i want to design/implment a DAO pattern , How do i go about designing the DAO classes,Below is my current ...

DAO pattern datasource connection help

979 byte By mruiza at 2007-10-1 12:55:54
After researching and attempting to implement the Data Access Object pattern using the Abstract Factory pattern I run into one problem for which I haven't found a solution.All of the solutions that I have found hardcode the database connection URL and user credentials into either the concrete ...

Problems accessing my "equals" method

1536 byte By salem1a at 2007-10-1 13:04:43
Hi every body,Can any one help me on this? I think is not a big problem but I'm new with this language.I have a class (with the object constructor)class TestClass{ String data; public boolean equals(Object o) {if ((o != null) && (o instanceof TestClass)){ System.out.println("ifffff"); ...

Read Only Data Properties with DAO Pattern

313 byte By regita at 2007-10-1 13:05:45
I am implementing a system where I want the primary key of my classes to be read only, however I want to be able to set them in the DAO objects. My DAO objects and data objects reside in different packages so I cannot use the default package method scope.Any ideas on the best way to implement ...

When to throw exceptions in DAO

415 byte By tv1970usa at 2007-10-1 13:11:22
I am planning to use DAO pattern (for the first time). As i can see there are 3 stages:1) get the DAO Factory 2) ask the DAO Factory to create a new DAO3) use the DAOMy question is regarding exceptions for the first 2 stage (In the third stage each DAO method is throwing an exception). I am not ...

sql query executing in any kind of database..

350 byte By Sathish_salema at 2007-10-1 13:11:59
I need to write an SQL query to fetch data from any kind of Database.Here the thing to note is the sql query should work in any kind of Database. How can we acheive this by using DAO Pattern?. The option i am having is based on the Database type which have to be found at runtime, we need to ...

api design question

659 byte By mehuld121a at 2007-10-1 13:16:37
I'm trying to create an API on top of an existing API such that my API will only expose a subset of the existing api, and the user of my api will have no knowledge of the underlying api.I'm not sure about the complexities/wisdom of this approach. How do I go about doing this? Are there any ...

DAO Pattern Anoyances

724 byte By JimJimJimmerya at 2007-10-1 13:17:44
HeyIm currently creating a project using DAO's and Struts and ive hit a snag thats really anoying me, DAOs are worken fine when i just need data from one table in the database, i can put all the transfer objcts into an arraylist and send to a jsp to itterate through and show the dataMy problem ...

only letting one instance of my application run

1591 byte By TeachMeJavaa at 2007-10-1 13:18:23
hi guys, My application will allow the user to interact with the database. The database will be stored on a local machine, and not on a network, so that only one person can access it at a time.The problem is, I believe a user can launch two instances of my application simultaneously, and ...

When to use Decorator and Singleton pattern?

970 byte By keeloa at 2007-10-1 13:21:07
I have a good example of the Decorator pattern in Bruce Eckel's Thinking in Patterns book. He gave an example of a coffee machine with which you can create different kind of cooffees. Every coffee can have "extensions", "decorators" like whipped cream, cream type 1, cream type 2 and so on. Ok, ...

Need design solution : Closed bid Auction application

1168 byte By MohamedMohideena at 2007-10-1 13:23:13
I am working on an online auction[closed-bid] web application.I have to develop two modules, an administration module and actual auction module.The Administration module should be able to manage the auction items. The auction module runs the auction and takes the bid from the bidders for the ...

Decorator pattern and Jtable DefaultTableCellRenderer TabelCellRenderer

526 byte By fred12341234a at 2007-10-1 13:31:00
Hello, I am trying to create a Partial Class Diagram for decorator pattern.I have TableCellRenderer, DefaultTableCellRender and a custom renderer CrazyTableCellRenderer.I am confused if I need to add the JTable to the diagram, and what each stands for.Component - ...

Tools/Methods Vs Experience

466 byte By zeta_acostaa at 2007-10-1 13:32:43
Good morning all,I am doing some research into the effectivieness of UML notations, tools and working methods in sotfware design as opposed to the developers experience of a selected programming language and paradigm. I was wondering, what the general consesus is when it comes to designing ...

XMI & UML Sequence diagrams

364 byte By lexisa at 2007-10-1 13:33:50
Hi everybody!Does anybody know where I can find some example or tutorial on how to write an XML file (following the XMI specification) representing an UML sequence diagram?I mean...I want to be able to write that XMI file in order to give it to a UML tool that can read it and transform it into ...

What is the difference between a static object and a singleton ?

1809 byte By anas.tauda at 2007-10-1 13:36:47
What is the difference between a static object and a singleton ?for example:1 )public class MyObject {static MyObject singleton ;public static MyObject getInstance() {if (singleton ==null) singleton = new MyObject ();return singleton;}private MyObject () {supe();}public void myMethod() {....}}2 ...

DAO question

5040 byte By uryl99a at 2007-10-1 13:37:08
I am working on a slightly different variation of DAO pattern as shown by Sun:* I have 2 Singleton classes "MSSqlServerConnectionManager" and "OracleConnectionManager". ( For brevity I will consider only 1):public class MSSqlServerConnectionManager {public static String s_driverName = ...

Code Set pattern or best practice?

1748 byte By Pcasanovaa at 2007-10-1 13:38:24
Hi all,I have what I would have thought to be a common problem: the best way to model and implement an organization's code sets. I've Googled, and I've forumed - without success.The problem domain is this: I'm redeveloping an existing application, which currently represents it's vast array ...

pattern for adding parts dynamically

990 byte By bukibu79a at 2007-10-1 13:38:30
Hi,I'm write a little application that runs some test. The requirement were thatthe test should be loaded according to the defintions in an xml file, e.g.<test class="test.test1" /> <test class="test.test2" /><test class="test.test3" />,i.d. that by reflection only the ...

Design Suggestions...

526 byte By katriyaa at 2007-10-1 13:38:32
Well, this is our requirement, pls suggest a feasible design pattern to implement the same:Server, receives notification from a client application when a user logs in to the application. Server persists connection as long as the user is logged in. n then disconnects once the client(user )logs ...

hashCode

350 byte By suppechaspera at 2007-10-1 13:40:15
It's probably not the right forum for this question.I have subclasses a Class that implements equals and hashCode. I have now overwritten equals as follows:return this==o;I now need to overwrite the hashCode to be consistent with the equals method, will say I need to return the memory adress ...

Questions about MVC

1039 byte By IceCobraa at 2007-10-1 13:42:08
I am recently working on a project that adopts the MVC design pattern and have the following couple questions that I don't really know how to answer:SITUATIONSay I am developing an application that a) plays a video and b) plays a slide-show which reads off the data from a database at each ...

Collection.equals

2516 byte By tjacobs01a at 2007-10-1 13:45:45
The javadocs for collection.equals states"The general contract for the Object.equals method states that equals must be symmetric (in other words, a.equals(b) if and only if b.equals(a)). The contracts for List.equals and Set.equals state that lists are only equal to other lists, and sets to ...

want to validate what i have learned about DAOs

2172 byte By srh99a at 2007-10-1 13:48:21
Hi everyone,I am now looking at the patterns and the first pattern I am looking at is DAO pattern which I think is the most important. I have read the java blue prints about it and these are the steps, in my view, which I need to follow:1) identify my domain model objects (Employee etc.); put ...

help needed urgently

331 byte By bongalea at 2007-10-1 13:49:45
here is business problem.iam receiving purchase order from my vendor in their own format.we have to receive it and convert it into xml files.iam not aware how to do this.The request is coming as a FTP request then how can i use HttpServlet can any body tell the design level of this problem ...

help needed urgently

331 byte By bongalea at 2007-10-1 13:49:47
here is business problem.iam receiving purchase order from my vendor in their own format.we have to receive it and convert it into xml files.iam not aware how to do this.The request is coming as a FTP request then how can i use HttpServlet can any body tell the design level of this problem ...

Network Server Thread Architecture

1088 byte By DylanRolfea at 2007-10-1 13:51:31
Hi all,I am building a java server for a multiplayer realtime game. At the moment there is a main Network class which calls a NetworkListener and a NetworkBroadcaster thread. All the data is stored in the Network class, and both the threads access the data to read and write. This is working ...

Singleton pattern issues

1207 byte By katriyaa at 2007-10-1 14:10:45
I have 2 issues regding a Singleton class :First :I have a singleton classpublic class HashMapSingleton{private static HashMapSingleton hashMapSingleton= null;private static Map myHashMaps=null;public HashMapSingleton(){}public static HashMapSingleton getInstance(){if(hashMapSingleton == ...

Observer Pattern Help

447 byte By sbainsa at 2007-10-1 14:10:54
hi,I am trying to understand how and when you would use an observer pattern. I understand that it allows one class to observe another, i.e if a variable was to change in 1 class all observing classes would be notified of the change. I do not understand how u would implement this, I have seen ...

MIN_VALUE & MAX_VALUE

217 byte By fireball003a at 2007-10-1 14:17:52
In Java programming language an integer can hold minimum value MIN_VALUE = 0x80000000 and maximum value MAX_VALUE = 0x7fffffff. Would anyone please explain what those (0x7fffffff) and (0x80000000) means?

Most Patterns Per Name

758 byte By jvaudrya at 2007-10-1 14:18:20
I remember the day when all parameters used to be one or two letter variables. Apparently that is not longer the best practice, since those are hard to read. Now we're reaching the other extreme... I'm seeing a trend that I can only describe as Patterns Per Name. So far Spring is beating all ...

3 Tier architectures

1093 byte By fedevapsa at 2007-10-1 14:18:52
I am trying to make a client -> server application in JSP and JAVA. I would like to use a 3 tier architecture and have therefore read about it on this page: http://www.sei.cmu.edu/str/descriptions/threetier.htmlI understand the two first tiers: User Interface and Process Management but am ...

Displaying split menu containing check boxes in struts

330 byte By syedabrara at 2007-10-1 14:24:31
How to display a split menu containing check boxes ,in the first a list of all families should be displayed and when we click on a family ,then in the second menu it should display list of check boxes of all the members . If the check box of a family is checked then all members of that family ...

What is SW based design and development?

54 byte By at 2007-10-1 14:27:25
What is SW based design and development

ORM Vs Entity Beans

150 byte By goudhamana at 2007-10-1 14:30:51
Can someone list down advantage and disadvantages of using 1. Entity Bean2. ORMHow to decide which one to go for and when?

regarding mvc1 and mvc2

72 byte By srujanva at 2007-10-1 14:37:34
In mvc2 we have execute() method ,what method do we have for mvc1

Inputs required

719 byte By nsahaya at 2007-10-1 14:41:31
In our project we have two application, application A and application B. Application B is in a location which is behind a firewall. We also have Adobe server at this location which is behind the firewall.Application A has user interface through which user requests for pdf generation for local ...

Struts creating problems

621 byte By luckyatblorea at 2007-10-1 14:44:03
Hi !Can anybody please help me, required urgently!I am developing a struts application, but the problem is say suppose when u click a button in a jsp page its action is defined in the struts-config.xml file and also the next jsp page to forward.But in my application we have an entry in a table, ...

Choosing Struts Framework causing problems

667 byte By luckyatblorea at 2007-10-1 14:47:23
Hi !I am developing struts application in which all the jsp's have an entry in the database. and allowing specific function access is based on the user login, so how can we choose the next screen to be displayed after querying from the database, since in normal struts application for every ...