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 ...
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 ...
63 byte By
mgreddya at 2007-10-1 12:02:27
what are the differences between Data and Value Objects?
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 ...
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 i had user name , password and role in FileLogin thanks arun .v.
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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"); ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 - ...
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 ...
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 ?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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 == ...
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 ...
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?
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 ...
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 ...
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 ...
54 byte By
at 2007-10-1 14:27:25
What is SW based design and development
Can someone list down advantage and disadvantages of using 1. Entity Bean2. ORMHow to decide which one to go for and when?
72 byte By
srujanva at 2007-10-1 14:37:34
In mvc2 we have execute() method ,what method do we have for mvc1
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 ...
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, ...
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 ...