Hi,Can the authorization be respresented as an use case.I found a checke privileges usecase in the uml examples site. The checking of privileges is internal to the system and the user has got nothing to do with it. As per the use case definition, one complete business interaction between the ...
hi,okey, all my application defined classes/objects are all instantiated on my main class' constructor(ie, the class that has the main() function)but a lot of times, my own defined objects needs each other.., so how do i exatly tell my main class to return an object since i instantiated my ...
On identifying the usecases and their relationships in the sytem, we moved to sequence diagrams. Generally the sequence diagrams are the visual representations of the descriptions provided for each usecase. Now the problem is how to derive classes from sequence diagrams.It would be easier to ...
Hello Sir,Is it possible to Connect Microsoft IIS Web Server to J2EE Application server....if yes can anybody tell me how it is done.....Any suggestion or something that will help me is appreciated...ThanksSam
Is there any rule against having a class without member variables?That is there is a class A and it has a set of functionality which qualifies being put in a separate class B. each time the method(s) of this class B are invoked we pass the parameters on which the method operates.Actually the ...
This is an excerpt from "UML Distilled" by Martin Fowler & Kendall scott(pageno.47)"How many use cases should you have?During a recent OOPSLA panel discussion, several use case experts said that for a 10-person-year project, they would expect around a dozen use cases. These are base use ...
238 byte By
asjfa at 2007-9-28 12:00:02
hi, is there a standard way in j2ee for distributing files? I'd like to deliver some (non java) software over the internet and don't want to reinvent the wheel in terms of security, roll-back etc..thanks,asjf
Why do we implement the singleton design pattern even if we get the same features by making a class members and methods static?Please help me out to understand the difference between these two.ThanksSachin Choudhari
668 byte By
saju_ma at 2007-9-28 12:06:28
hi i'm new to class designs - pls help to get the good solution.i'm having 2 classed Customer and CategoryCustomer Contains...CustomerId,CustomerNameCategory ContainsCategoryId, Desc. i've to design a class in a way that i've to specify the category of the customer. is it feasible to add a ...
from the "java core pattern" book,i have learned that the service locator is a singleton,but when i downloaded the petstore1.3.1_01 and opened the source code,i find the web tier locator is a singleton,but the ejb tier locator is not a singleton,why?the ejb tier locator as:package ...
656 byte By
tingdoga at 2007-9-28 12:18:35
Categorise the following relationship into generalization, compositionaggregation or association.Beware,there may be ternary or n-ary association in the list,so do not assume every relationship involving threee or more objects is a generlisation . a. A country has a capital.b. A dining ...
Hi,Anybody can help meHow should call JSP instead of invoking client class on EJB?.(i.e. we deployed at J2EE server our EJB Application as a jar,after that we call business methods by using that like thisjava -classpath %CLASSPATH%;CITYClient.jar project.bmpaccount.ClientInstead of that JSP ...
735 byte By
sunseara at 2007-9-28 12:29:57
Hey guys,A question. In designing our application we needed a place to store a few arrays that never change, some setting that never change and some other stuff. I'd initially thought of using a singleton for this purpose. This however messes up my plan of using one jar-file for several ...
871 byte By
tingdoga at 2007-9-28 12:31:28
Hello,everybody,i am a beginner of UML, Would anyone like to help me draw a sequence diagram and a collaboration diagram representing thefollowing scenario ? i have drawn two diagrams but my knowledge is limited so it is hard to draw good diagrams.You may use Poisedon 5.1 UML to draw the ...
997 byte By
mahi18a at 2007-9-28 12:35:37
Hi there!I am bit confused with the division or categories of Patterns.Does GRASP Patterns (General Responsibility Assignment Software Patterns - catalogued by Craig Larman) come under the group of Design Patterns?I got confused when I read somewhere that - Design patterns are the patterns ...
2274 byte By
cyboca at 2007-9-28 12:37:13
Let's say I have these entities in my database:PersonpersonId (PK)firstNamelastNamePhoneNumber--phoneNumberId (PK)numberdescriptionpersonId (FK referencing Person entity)I have a PersonValueObject class with the following attributes:Integer personIdString firstNameString lastNameCollection ...
573 byte By
Jinoa at 2007-9-28 12:40:40
Im using an ftp package to make a download manager that monitors download in a JTable. I have a class called FtpDownload that is a thread that performed the actual download. It implements observable so i can update the table model... a url is passed the the constructor and it begins download. I ...
I would like to find more out about the following, maybe a simple overiview with examples or a beginners-experts explaination.I am looking at the idea of:Program consisting of:GUI LayerBusiness logic layerDatabase layerI am looking at ways to implement this. Any ideas to start would be greatly ...
Hi guysUrgent! Can we use J2EE server as a RealTImeEnvironment Develpoement?.if so give some tipsif not so pls give why?and what is reason?.i think compare with JBOss,it is better to use.with vijay
3112 byte By
mwardena at 2007-9-28 12:55:40
I originally posted this in general java programming, because this seemed like a more high-level design descussion. But now I see some class design questions. Please excuse me if this thread does not belong here (this is my first time using the forum, save answering a couple questions).Forum,I ...
3362 byte By
gdascoa at 2007-9-28 12:58:38
Here is my web.xml file<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" ...
Is there any Worked out example which can be used to quickly get into what the MVC Architechure is and How its working ?
Are there tools which can automaticaly build a Collaboration or a Sequence diagram by analysing the code? It must be possible in my opinion.I am working a little bit with the Websphere Studio Applicatin Developer 5 (WSAD 5) plugin from Together. It supports UML 2 Collaboration diagrams which ...
how could deploy EJB with JSP/Servlet?.First i havepackage project.account1.HomeInterface class2.RemoteInterface class3.Bean class4.Client classI deployed the above bean in J2EE using Deploytool GUI.run the client like thisjava -classpath %CLASSPATH%;personDepClientClient.jar ...
Yes, this is a GUI-specific design question, but I'm more interested in the general pattern.My basic question: who should own the construction and management of popup menus ("context menus") for a given component?A. The enclosing JFrame, or something at that level.B. The enclosing component ...
1100 byte By
gbishopa at 2007-9-28 13:19:04
We have an existing J2EE application. We have acquired a company that does not have connectivity at its sales sites - in Mexico (they go to people's homes). We have to have these people be able to use our J2EE application.How, short of putting Tomcat on their PC's (my initial suggestion) can ...
996 byte By
s_locka at 2007-9-28 13:29:05
Hi,In EJB based applications, the Business Delegate pattern acts as a proxy for web-tier <> EJB-tier calls and hides the implementation details of the business layer code. But what about non-EJB applications? Some of the benefits gained from using the Business Delegate pattern (hiding ...
Hi,***This is my problem. In my system I have users, groups and privilages. The system has to be able to give privilages to groups and assign users to those groups. Now this has be independant of any App server and must be done from a system GUI. This is so that I should be able to port it to ...
How to connect j2ee and cloudscapeDB using servlets ?I am getting a Driver error whenever I try to access cloudscapeDB from from a servlet on j2ee.I have Mandrake Linux as the OS.Please helpAbhinav
hello to all,i have made a use case diagram for a UML diagram editor. i want to implement only the use-case diagram and class diagram in the editor.the diagram is completely unrefined.kindly comment over the same and suggest for a better use-case diagram...this will greately help me in my ...
140 byte By
c_kamsa at 2007-9-28 13:40:52
Hi,Can anyone plz tell me clearly the difference between a J2EE desgin pattern & a J2EE framework.Thanx in advance.
2423 byte By
fedetxfa at 2007-9-28 13:45:01
We are developing a java application to run on a PocketPC. There's a relational DB, and the objects come from there but we are not using a Object Relational mapper... We are using a simple framework taken from an article here http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql_p.html so ...
Cam anyone help me to design the UML for this project ? Thanks a lot !In your co-op job as an Operations Analyst for United Parcel Service (UPS), a large courier company, you have been asked to develop software that will assist the company in choosing routes for its trucks.Each truck leaves ...
Hi, Could please anyone help me to resolve following question? Thanks in advance![Question Description]I have a session bean, which uses a lot of entity beans, and I have successfully called the session from another test bean. The session bean is created as following:<session bean> ...
hi ,i have three use-case diagrams having 1 user each who are actually the same actor. they are designer, usecaseDesigner and classDeisgner. i want to show the relationship between them.what relationship do they hold? will it be generalization or trace relationship.i have a uml diagram editor ...
447 byte By
qnzua at 2007-9-28 14:04:15
I install " Sun ONE Studio 4 Update 1 Enterprise Edition " . I run "JApplet"( programname ) with this forte4 successfully , but unsuccessfully run "JApplet.html" with IE5 . I get messege of errro : " java.lang.NoClassDefFoundError.org/netbeans/lib/awtextra/AbsoluteLayout " .I find that there ...
Hi I would like to know what actually is MVC architecture and when & where to use this ?Any example would be handy ...Thanks in advance...
Maybe a stupid question but is there any documentation out there that helps an engineer learn and use the best object oriented design techniques. Also, is there one available in the area of coding techniques.thanks
i have involved in designing a portal i got the specifications and i need to develop this usding jsp, servlets and mysql as backendi have started designing with uml use case diagramsplease any one help me how to proceed nextin designing what are the steps (drawing uml diagrams) to follow next ...
Is it necessary that a DAO is associated with several DataSources?In general, a DAO serves as a business object. But what is your idea if you find the data of the business object come from two data sources? Just associat the data sources with the DAO? or split the DAO into two layer: two DAO ...
264 byte By
bblfisha at 2007-9-28 14:26:14
In chapter 2 (Accountability) of Martin Fowler's Book "Analysis Patterns", Martin mentions James Odell's Power Types. I have been looking for more information on this and how it could be implemented in Java. Has anyone here come across Power Types?
1112 byte By
cnz13a at 2007-9-28 14:35:29
Hi all,I'm designing an application in which I need to:1)query a database to get a list of orders, 2)create the documents and 3)print the documents.... and these repeat continuously. 2) and 3) have been developed. Now, the way I thought to model this is through a Controller class which should ...
2220 byte By
Onyaa at 2007-9-28 14:38:26
From within my BlueCleverColor run method I want to call the upDate() method of the different class ColorPanel. I can't make the upDate method static because "setBackground()" is not a static method.I find that when I encounter a situation where I want to use the method of another class and I ...
864 byte By
NovakAa at 2007-9-28 14:43:24
Hello everyone,I'm searching for a design pattern / framework to manage exception handling. I'm currently working on a distributed document management system for PC / AS/400, which consists of Commandline clients, a Socket Server and a windows NT daemon in java, which accepts network requests ...
Hi,I expect you get this a lot but I'd be really greatful for some pointers towards my final year project.I'm creating a Java application that will draw an ER Diagram when pointed at a database.I've got the code sorted to query the database and sort out the entities and relationships but the ...
Hi,all:I notice that many methods of "String" class is non-static,which means each String object has such all methods copies when created.If an application uses many String objects,this design pattern of "String" class will consume much memory.Is this pattern good or bad?Thank ...
For a class project I have to make a game. In the game the player's lifepoints get updated at the end of the game. It takes the lifepoints at the start of the level + x. Should I put this function in the model (Hero) or in the controller?
I was wondering how much detail you should include when using...Servlet Controller to and EJB Controller to specific EJBs. You would probably want to use a Service Locator, but diagramming dependencies between the servlet controller to the ejb requires three dependencies with a service locator ...
Would if be appropriate to display a specific protocol on a component diagram? For example, HTTPS or IIOP between two J2EE Components (JSP and Servlet or JSP/EJB)? Thanks,Mark
Hi,all:I notice that many methods of "String" class is non-static,which means each String object has such all methods copies when created.If an application uses many String objects,this design pattern of "String" class will consume much memory.Is this pattern good or bad?Thank you!Benjamin ...