Is there any way to avoid long switch statements or if block when using a controller servlet to handle all requests. Using the front controller pattern and the command pattern offer more decoupled actions, but surely at some level you have to add conditions for request strings passed back from ...
Hi!I am trying to find out how you best could make a web app internationalized. Let's say that you'd like to have every view (in a MVC framwork, for instance) displaying buttons, representing each supported language; pushing one of them would change all text displayed in the view accordingly. ...
97 byte By
balteoa at 2007-9-29 5:41:40
Hello,Does anyone know what POJO stands for?Thanks in advance,Julien.
Hi all, i build a simple application based on ServiceLocator to centralized the objects lookup, and the application seem to be very good until, jboss decides to passivate my application Session Stateful Object. After that for each request jboss throws a NoSuchObject Exception.The ServiceLocator ...
497 byte By
Yaaaaaa at 2007-9-29 5:51:26
Dear All,I understand that in real OO world. Most of properties in a class should be private and the methods are the interface between the instance and the outside world.I have a class work as the cash, which save a lot of the data from the other layer software, then my application will get the ...
1405 byte By
jboesea at 2007-9-29 5:59:57
Hi,I have the following simple class hierarchie, subclass B and superclass A implement both the methodB(). The constructor of B calls the constructor of its superclass where methodB is executed.This listing outlines the constellation :class A {public A (){methodB();}public void ...
hi,I am currently working on a J2EE project, web service etc.. and now I am leaving the dept that i am working for. b4 i go i have to provide the logical diagrams (class diagrams etc etc) for the code that i have developed. specifically its an .ear file (enterprise application file running on ...
Ok, I just want to get this cleared up in my very confused mind....I have always used the term 'delegate' when I have a class which implements an interface, but passes thru all requests to another object implementing the interface (e.g, simulating multiple inheritence, changing implementation ...
Hi guys,i'm just new to uml with all that stuff like use cases, sequence diagrams etc.I have to build a FlowDisgner Gui for Windows. The modeldata is already implemented in C++. I 'just' have to add a GUI. Is UML useful for building a GUI? I only have 1 actor in my case, i think, the user ...
It seems that the general rule to making a GUI application is to seperate the "Business Logic" from the "Presentation Logic". From this, I'm guessing I'll need to package all my GUI stuff together, and all the business logic layer stuff together.The GUI will then talk to the Biz lay through ...
1103 byte By
Amomoa at 2007-9-29 6:28:55
Hi,I am having a problem trying to get my client to contact an ejb session bean via weblogic. I am passing 2 paramaters: String, and an Implementation of the AbstractTableModel, which is seralized and contains transient variables. So I guess my question is in regards to whether or not I should ...
I currently have a J2EE project in production and a significant amount of ongoing development. I currently have a single project defined in IntelliJ/IDEA. As a result, when I deploy to production I move the WAR file into the j2ee/home/applications directory and restart the container. Is this ...
Hi,I am just starting to learn design patterns in java, I have bought a book 'applied java patterns', since the book is from 'sun microsystems press', I wanted start this thread and get your expert help.
Hi,We are going to develop web based application wherein there will be hundreds of users updating upto few thousand records. Each record contains 5-7 attributes/fields.What I want to know is shall we keep our schemas in an XML file or in RDBMS? Because from portability point XML seems ...
124 byte By
heheneta at 2007-9-29 6:41:05
Dear All,What is the different between class diagram, sequence Diagram and Collaboration Diagram.Thanks
376 byte By
leala at 2007-9-29 6:42:23
interface xxxxxxxxx{boolean isValid ();boolean doesConflict (Object that);}How would you call such interface?I'm calling it "Validatable", but doesn't sound the best name to me.So, you can objects that are valid or not, following the constraints.How would you call objects with such ...
2464 byte By
cmolloa at 2007-9-29 6:46:13
Hi,I have what I think is a straightforward design question. I triedsearching this forum for the answer, but struggled with what keywordsto use in the searches. (I also struggled with what to put on thesubject line for this post!)Anyhow, here is my question: Given: public class Pet {...} ...
from another thread..i got that an association can be - An instance varable.- A collection as an instance variable (containing the object.)- Another class which has references to both of the classes.- Used as a local variable in a single method and discarded when the method is done. Now here's ...
What is the best way to persist component types ?I my Application, for example i have interface Rule //defines the interface for a businees ruleclass SimpleRule1, class SimpleRule2 //simple rules, each with diferent fieldsclass CompositeRule1, CompositeRule2 //Macro rulesI am trying to see what ...
who can give me a intro about how to use it hurray
Hi I've got an unusual situation where I need to protect some of the static images on my site from unauthorized access. Is there any way of doing this transparently? A not-so-elegant way would be to block off access to the web directory that serves them and have these images delivered by a ...
361 byte By
myQAa at 2007-9-29 6:56:32
the Question:In the file system, there are many files, their's file format is FormatA.and now come two new file formats, FormatB and FormatC. Now the old files with file format FormatA should be converted into files with FormatB,and In the future the FormatB maybe convertend into FormatC,how ...
Right now i know only Model1 and model2 Architecture . Is there any MVC1 and MVC2 architectures .If any please explain.
I want to develope Automation and Control Application and I don't have any background about these kind of programs.I decided to use Java but I am not sure is it the ultimate language for these kind of applications. My plan is to start developing simple programs for interfacing with single ...
536 byte By
zeeyanga at 2007-9-29 7:08:29
k, i learned a little uml in my java class last year, but i never found it useful until now. im facing a very complex project (160 class in total), and i have to get up to speed fast. im using Together integrated with jbuilder, which gives me a overall diagram for each package. here is what i ...
78 byte By
tirlia at 2007-9-29 7:10:03
HellowWhere can I find an Archive that include the javax.ejb.*?
799 byte By
_Shark_a at 2007-9-29 7:12:25
I am using Front Controller to channel user requests request.getRequestDispatcher(request.getRealPath("\\jsp\\plugin\\plugin.jsp")).forward(request, response);I set up the Tomcat Web.xml file so my Front Controller servlet will answered any request like this ...
677 byte By
snklta at 2007-9-29 7:13:16
Should i use Exceptions in my classes like this?try {auth.loginUser(userName, userPassword);System.out.println("User logged in.");}catch (InvalidUserException e1) {System.out.println("User does not exists.");}catch (PasswordDoesNotMatchException e2) {System.out.println("Password is ...
297 byte By
zeeyanga at 2007-9-29 7:15:08
im using together to reversely engineer a project with about 160 classes, and it takes about 2 hours to generate a sequence diagram even after i exlcuded all the java sdk packages and classes. is it supposed to take that long? do u have any suggestions on how i can improve the
Hello, I am designing a J2EE application, where the user with ADMIN role can configure the WorkFlow. For example, when the Candidate Resume is attached to the some job id, these candidates has to go thru some steps (like Telephonic interview, personal interview, Manager approval) and these ...
We are designing the object model for a new system. But we have a legacy data model which stores both orders and order items in the same table. The relationship (between order and order items) is maintained through a self foreign key to the same table (recursion). We are discussing possible ...
Does anyone have/know of an integration pattern for connecting EJB/J2EE applications with non-Java back end services. I need to connect to another server (C++) to actually execute some logic. The J2EE application would handle much of the workflow. Multiple clients would be connected and would ...
349 byte By
zeeyanga at 2007-9-29 7:30:29
i know this question has been asked in this forum many times before, but i still cant find a clear answer, so here goes again, what does dependency really mean, and how does it translate to code? i understand association because it simply means one class is holding an instance of another class, ...
146 byte By
kamathsa at 2007-9-29 7:37:13
hi group,can any body provide some links,to design and analysis document of e-commerce,retailing e.t.c,thanks,kamath.
1640 byte By
gsegelka at 2007-9-29 7:51:33
I am in the process of designing an application that controls a piece of hardware, so I have been researching patterns to use. The main thing I have been trying to resolve is where to handle the action that is performed when one of the buttons is clicked. This is an issue for many people and I ...
774 byte By
cristaoa at 2007-9-29 7:53:40
Consider a Father class and your inheritance, the Son class. If an instance of Son execute a method not overrided, it will be executed the Father's method. But if this Father's method execute another method implemented in the Son, which method will be executed: the Father's or the Son's ...
Hi Folks,I am mooting an RFC for UML to allow capture of Method Logic (Workflow) in the sequence diagram to allow a more richer representation of flow within and between objects.Such a change will also go a long way in automating code generation.Regards,Ajaykumar ...
1644 byte By
holtscha at 2007-9-29 7:56:11
Hi forum,In our application, we need to know when the last modification of a Bean took place. For that, we have a field "lastModified" that should be updated with the current date whenever any of the setters has been called and the new value is different from the old value.E.g. assuming that ...
Sun's J2EE blueprints includes the DAO pattern: http://java.sun.com/blueprints/patterns/DAO.htmlI created some example DAO's: http://daoexamples.sourceforge.net http://daoexamples.sourceforge.net/xref/index.htmlPlease send any feedback to sean /.at.\ seansullivan |.dot.| com ...
Hi friendsi am in a situation where in there are multiple system designers designing on a singel model. Now on designing used cases we need multiple users using the same file at the same time. Is it possible in rose .Please help me in this regardsthanx in ...
please post the sample code to remove if-else loops using polymorphim/inheritence. renjith.
Does anyone have any experience deploying an EAR within a content management system environment? I'm a project manager and my web guys are telling me that they want to deploy our ecomm web app as a packaged EAR, but they want to be able to update content dynamically, without redeployment of ...
697 byte By
kodz1a at 2007-9-29 8:07:22
Hi allI am helping to implement and build a student managment system for the education institution I work for which must be accessibel over the net .And I am having a hard time trying to convince senior mangement to switch from PHP to using the JAVA EJBs. I have prepared arguments such as.1. ...
689 byte By
profluxa at 2007-9-29 8:12:07
In the EJB 1.1 specification, there were no such things as Local Interfaces and Local Home Interfaces. In the Core J2EE Patterns book, they cite the main reason for using the Value Object Pattern as being a way to avoid much of the network overhead associated with using EJB; any call to an EJB ...
i have a final yr project on java--any help plzzObjectives:In software development we make extensive use of models to capture details about objects in a domain, the attributes of the objects and the relationships between the objects. Once complete, these models also contain constraints on the ...
390 byte By
salvagga at 2007-9-29 8:19:14
I'm an aspiring java developer. I'm still learning and trying to do much of it on my own. I've read some of Design Patterns by the gang of 4....is there a defacto book for Java in design patterns? Obviously there are books on this topic as I saw from a quick look at amazon, but what is the ...
Decorator is one of my faviourite design patterns.I've stumbled upon a limitation recently though, and wonder if its just that Im missing something.....Lets say Ive got a 'model' which fires events when things change.I also have model decorators, which add behaviour. For example, RMI, model ...
I'm busy understanding and creating a frontcontroller using this example: http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.htmlHowever the RequestHelper, Command and ApplicationRecourses classes are not given as an example. Is there anywhere a concrete implementation ...
146 byte By
gusseva at 2007-9-29 8:30:42
Hi All.is it possible somehow to use XDE to develop App. for JDK1.4.x ?Or I may use it only with JDK 1.3.1 ?Thank you.
Long before J2EE and web services, a few coleagues and I designed\wrote our application using certain methods (To be described later) and are thinking of maybe porting over to j2EE. Since this is the forum for J2EE paterns and design maybe a few of you can give your 2 cents...Our application is ...