3849 byte By
alta at 2007-10-2 18:17:08
Hello,I want to build a good website rapidly that is easy to add new features. I want to program my site in a platform-independant programming language so it can be ported to different platforms easily.One suggestion is to program the interface using XSLT. There are XSLT compilers that ...
Does anyone know any good books that explains oo principles and have examples in java for beginners?
Well, I'm just starting to get into EJB3, and enjoying what I work with so far. I'm curious how EJB3 may impact my own use of certain design patterns, and I'm looking for input. It's a trade off between faster development, and "better design". I work on a moderately sized J2EE application, ...
228 byte By
Sailua at 2007-10-2 18:37:24
HiI am looking for an example of competing consumer pattern.If there are any articles or web site references that you are aware of please let me know. It will be really appreciated.Thanks,Sailu
2864 byte By
valjoka at 2007-10-2 18:50:05
My previous discussion abot the this issue has been removed. I must reconstruct it to be aware of advantages, disadvantages and bypasses over the restriction.Obvously, the restriction prevents us from writing some perfectly valid code:class Unsigned7BitOscillatorInputStream extends ...
134 byte By
Java12a at 2007-10-2 18:58:22
hi everyone,does anyone know how to get the sign ">" for the association, when doing the class diagrams?thanks
169 byte By
Java12a at 2007-10-2 19:01:36
hi,when you do a web application you have to do a diagram for each use case, how would you apply this technique to desktop based applications?thanks
i have to instantiate objects based on some if conditions. e.g. if this then create this object else if this then create this object etc....how should i go about dealing with this prob. I am sure there must be a smater way out.
Hi,Here is my dilemma.. I have 2 classes.. We can call them Policy and Quote. I need to have them on the session. I also have a class, BusinessModel, that will also hold onto these "same" objects. This way I can pass BusinessModel around with all the objects I require in my app..My dilemma is, ...
I wanted to create Items and be able to display it. The user will do some selection based on what i had displayed. But the constraint was when am asked to add new items i should do it without modifying existing code. I thought factory pattern would solve the issue. I was able to create a ...
1779 byte By
faitha at 2007-10-2 19:23:24
Hi there,I have a program that is using 2 classes in the same package.Oneis called Add_Word,the other is Edit_Word.Both have a seperate GUI.I have created one class(Add_Word) with a reference to (Edit_Word).The idea is to allow the user to enter a list of words through a text field and pressing ...
14577 byte By
Sailua at 2007-10-2 19:25:00
HiI will appreciate if any of the experts here can take a quick look here and share some input which might be useful. I have made a post here earlier: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=385522&SiteID=1Any help will be appreciate.Thanks,Sailu.Here is some details of the ...
2605 byte By
ktm5124a at 2007-10-2 19:30:57
I have been thinking about whether passing parameters as a Map of objects is a good idea or not when one is simply using POJOs. Of course, I am only talking about doing this in a few select cases. An example is an online service that keeps track of its users in a database. Think about the ...
The following is the design for a reporting module. Any suggestions on the same would be appreciated.1) ChartGenerator implements Generator.Attributes ? private int ncompID = UNDEFprivate int njobId = UNDEFprivate String storedproc = ""private java.util.Date fromdt = nullprivate java.util.Date ...
hi, I'm really trying hard to getting into modeling my applications before coding. So far I've found it to be very useful, especially class diagrams and sequence diagrams. However, sometimes I find that after a long day of coding I begin to get lost inbetween method calls within the same ...
hi, i am working on a JSP/Java/Database application. fyi, i use JBuilder. how can i figure out what is the type of architecture/model used for this project?also, it seems that it uses "Persistence" and "Object Model" concepts. where can i learn more about this type of architecture?also ...
please suggest how to read content from PDF file.. If possible with Sample CODEThanks & RegardsRAHUL
Hello friends,Should I say that the Manager acts as a Facade ?public class A{ public void methodInClassA() { }}public class B{ public void methodInClassB() { }}public class Manager{ private final A a; private final B b; public Manager() {a = new A();b = new B(); } public static void main(String ...
Hi to all,I have to create a server. Server will be bridge between clients and another server. I want to make architecture with worker threads. When selector selects a key it is passed to worker thread, if available. If worker thread is not available selection continue until worker thread is ...
Assume that we're going to create a lot of instances of a class. Further assume that they're all going to store a value that is encoded somehow. Therefore in addition to accessor methods, methods need to be created to encode & decode the data.My question is, in terms of performance & ...
When I'm coding my apps and I'm going through lists ( very often ). I find it tiring to create an iterator or for loop for every little thing. I'd love to send "Code Blocks" to a List, a la Ruby / Smalltalk; and every element in that list has the code block executed on it. Is this in some ...
Hii JavaitesI have developed a application in Struts, EJB in Weblogic.Now i need to create the class diagrams of my application.I am thinking of reverse enginerring it using Enterprise Architect.Now i want to know in my class diagrams, wht classes will come ?Will it include my action classes, ...
Hello All!First off let me apologize if this is the incorrect forum to post this question. Now on to the question, I抳e been searching for a program that could give me a visual representation of the dependencies required for my program (much like a spider web looking diagram).I抳e done a bit of ...
993 byte By
stdouta at 2007-10-2 20:06:50
I am currently in the midst of migrating my existing C apps to sit on a Java platform. The app is legacy and interfaces largely with numerous hardware devices via RS232 with a main controlling program that sequences the business logic. Imagine a manufacturing system with many conveyor belts, ...
125 byte By
incaa at 2007-10-2 20:10:15
I was wondering if any one can architect a online virtual trading system. Volunteers would be compensated financially.
Hello.I'm working on a project where I need to create Class objects out of all of the .class files in a directory and in any subdirectory. I'm trying to use the Class.forName() method.My problem is that I'm not able to pass a path to the .class file in the Class.forName() method. But I ...
dear all, i have a very important assignment and i require help badly.i have a program that connects to a server, the server works fine however i have a problem with some of the client code. my problem is that the client uses a function to connect and the same function to receive the code using ...
Lets say in an application there are the following componentsDatabase | |VDAOLayer | |VBO LAYER||VServlets|| VJSPsWhat design patterns does the above incorporate?My guess - DAO pattern.Is this a good enough design for a SAAS(Software as a service) application?What would be the drawbacks of this ...
3685 byte By
jdupreza at 2007-10-2 20:31:41
Hello,I have a Java client that has to issue requests at fixed rate to a remote server.The original programmer did it genuilely (and monothreaded):public class Client { public Client(int rate) {this.delay = ...; //conversion and rounding algorithm omitted; } public void sendRequests() {while ...
Hi there, What's the diference between POJO and JavaBeans ?Thanks
Can some one explain me in simple terms the difference between proxy pattern and session facade pattern ?Thanks
Hi,I'm looking at caching various objects in memory but I cannot work out how it is possible to overcome the problem of child objects becoming stale in the cache:For example, say I had an Order object in cache with a reference to a Contact object. However, the Contact object is also used in ...
How to share Singleton in different JVM?Suppose we have two application installed at different server, how to share the same Singleton?Rakesh
What means "Design patterns"
340 byte By
Kavansa at 2007-10-2 20:44:16
Hi,I am creating a web app with approx 25 web pages with not much business logic.I plan to use struts framework.What I wanted to know was, shall I use value object pattern for my web page? Is there some kind of questionaire which I can take to decide whether I should use VO or ...
449 byte By
Saisha at 2007-10-2 20:48:09
I saw an excellent presentation on Seam, and aside from its integration with JSF and EJB 3.0, I was particularly interested in how they worked in JBoss's version of BPEL, jBPM. I'm not 100% sold on BPEL, but it definitely seems like a great way to reduce coupling and complexity in larger ...
This may be quite trivial for many of you, but it's not my case...I am trying to implement roles on a user class I've created. What I thought of was creating 3 classes:- Role- Roles (a container for all the existing roles)- UserEach User should be able to contain none, one or many Role ...
Hi,I have 2 objects that the first is extends the second. should i consider any thing in their DAO class or their DAO are distinct?tx
316 byte By
musica at 2007-10-2 20:56:29
Hi all,I have 4 tables deal with 4 DAOs. But I have a funcion called search() that get infomation from 4 tables above. Will I put this function in which DAO ?.I see each DAO work only on self table. such as searchBy..., delete, update. But a query complex we will put in which DAO ...
1295 byte By
aamya at 2007-10-2 21:01:34
Here's my pattern question:Vehicle ObjectSUV Object extends Vehicle ObjectSedan Object extends Vehicle ObjectDecisionMaker Class -- Decides what vehicle to use in the program depending on the weather e.g:public Class DecisionMaker{public Vehicle whatVehicleToUse(){if(raining) return new ...
I want to develop a tool in Java. It is a desktop tool with about 20 or so screens (some of which are complex using multiple controls that need to update each other on the same screen, and others are normal JTable based ones etc).I want to desing and develop the code in such a way that I write ...
2746 byte By
ktm5124a at 2007-10-2 21:08:12
I am developing an online service and I need to validate users and process text messages. I have two ideas for this. Can you tell me which idea you think is better and more OO?1) Create a User object to validate the packet's sender every time I receive a packet. The User object will be ...
483 byte By
Galaxya at 2007-10-2 21:08:55
Hi,I am trying to do a chess game using mvc. The view obviously should handle all the drawing stuff and the model the logic, which means in mvc I have to have a pawn concrete class (model) and a pawnviewer class (view)?If that is the case is there a better solution than to check for the chess ...
3465 byte By
ktm5124a at 2007-10-2 21:15:12
It has been my opinion for a while that MVC sucks. It seems to me that it takes away from the OOness of a program. An object should act reflexively -- a piece should move itself, a message should send itself, etc. -- and MVC puts the programmer in this limited mindset of:Controller -> Model ...
The task is to generate a chart generator -I have two classes for the same -1) ChartValuesGenerator - this class generates the values which is required to plot the graphs.2) ChartGenerator- this class generates the charts which are required. To generate the chart it requires the values ...
361 byte By
badda1ka at 2007-10-2 21:21:19
I am looking into see how i can design a client side interface that will talk to mulitple web services. This client side interface will act as proxy and call multiple web services based on the input from web services clients. Can someone give some ideas/pattens that i could use to design this? ...
292 byte By
_AM__a at 2007-10-2 21:21:50
Hi, i have a basic question, how many instances of a singleton will be created in a multi threaded environment. 1. As every thread has it's own object... does it mean, every thread has its own instacne of singleton class? thanks in advance..thanksSJ
Hi GuysI'm making a multi player browser game. The game will have some forms to setup data into the database and the player will be able to check other players data.I will load the players data from the DB into a Bean when the application starts and then just get the other players information ...
I'd like to have some opinions on each, what should be best used ?I'm a bit confused about wich should be used and when ... And what about Helper classes ?Thanks
I would like to know how a framework is built.What are the good design steps to be followed for an effective framework?Which are the design patterns to be followed?It would be helpful if anyone could enlighten me on this subject.