Tomcat and Apache

157 byte By luck986a at 2007-9-29 11:07:22
I installed Apache HTTP server and Tomcat, but I cannot run the examples coming with Tomcat. What config should I change, or what should I do? Thanks.

Undo with Memento pattern vs swing undo

1721 byte By thebobstera at 2007-9-29 11:12:54
I was tempted to add this question to the end of http://forum.java.sun.com/thread.jsp?forum=425&thread=440740&tstart=0&trange=15 but I've had a poor response in the past by adding a question to the end of an existing thread.I am working on a project with a rather poor ...

CMP vs BMP

235 byte By perryaroraa at 2007-9-29 11:12:56
hi friendscoud any tell me the core benefits/asvantages of using CMP beans on the BMP ot vice versa!!!or any disadvantage of using any specific type... with that were should be use the CMP and where BMPthxs!

Sessiob bean as VIEW(MVC)

553 byte By perryaroraa at 2007-9-29 11:12:57
hi friends!need you help on the follwoing issue,, well its a confusion...can we say that Session beans fall in the View part of the MVC architecture if we think of charcterizing it....well following are my questions..(1) we do use session beans as a front end for handling complex transactions ...

most widely used UML tool in the industry

174 byte By k_oyedejia at 2007-9-29 11:14:34
HiCould any one tell me which UML tool is the most widely used in the industry? I'm trying to draw up a list of UML tools to consider. Thanks in advance

Web-app Design !

1166 byte By Behrada at 2007-9-29 11:15:15
Howdy, i'm developing a web-app ( Servlet,Jsp and Oracle ) for a University Registration Management System.System requires a lot of reports and lists ( tables ) for system operators.My issue is when to load data?!Any web-app example says that, show a JSP, get request, connect to DB, show ...

Is a method allowed to ignore a passed parameter?

113 byte By Para.cetamola at 2007-9-29 11:16:00
Hi,what do you think about a method foo(int a) ignoring the parameter a?GreetingsPara

UML diagram for SAX parsing XML doc?

469 byte By RichardLee1a at 2007-9-29 11:16:28
What is the best UML diagram that can be used to show a XML parsing process by SAX?SAX is event-based, I want to show the handling process in a diagram, for example, in startElement(), I want to create a new object, and then in characters(), I want to add some data to the created object, and in ...

Can you help me?

187 byte By happy_wta at 2007-9-29 11:26:43
HI,there:I want to use mvc pattern, but how to tell system which servlet is controller and forward each request to this controller ,need i do configureing? Thanks Ben

Static Interface Pattern

2213 byte By johnsenforda at 2007-9-29 11:27:10
Summary=======Define an interface which declares static methods. The essence of what I mean by this is: define a number of classes which contain/provide access to common methods to which we can make static calls.Details=======What we are trying to achieve here is effectively an interface which ...

Class.forName() error - ClassNotFoundException

622 byte By dc-dca at 2007-9-29 11:29:52
I am new to J2EE programming and writing a controller to execute action class based on the action value from a property file (quite similar to resources bundle). the coding is something the followsclass = "action_form1";// from property file //where action_form1.java implment FF interfaceFF ...

need some help with xmi/uml

306 byte By room333a at 2007-9-29 11:32:51
Hi,what I need to do is represent some classes/data in uml. i.e. I have a class that has a hastable and I need to represent the class + all the values in the hashtable in uml. I thought about manually creating an xmi file but dunno if this is the best way to ...

State queries on stateful session

1055 byte By teppoka at 2007-9-29 11:34:52
HiI have been desiging a application framework based on MVC-paradigm and EJB.Gestures made by user are processed by the controller, which creates a stateful session to act as a model. View is registered into the model, which notifies the view, when data is changes:1. ctrl creates model2. ctrl ...

MVC Help

830 byte By gopalkisa at 2007-9-29 11:38:15
Hi I am new to designing, I am not able to confirm whether my design explained below is a valid or proper one, should I improve in any other place.M - Stateless session bean having methods for insert, update, delete, view, V - Jsps, html, js, imagesC - A single servlet for a single ...

why is J2EE faster than RMI

516 byte By bart1979a at 2007-9-29 11:42:55
hii wrote some algorithms like Fast Fourier Transform, N-body problem, Graph problems, and ran them as parallel applications on multiple processors(2, 4, 8) using both j2ee and rmi architectures.all of the applications ran faster with j2ee. i was expecting rmi to run faster. because j2ee will ...

pattern b/w Remote interface & Container implementation class

416 byte By rubalsidhua at 2007-9-29 11:42:59
Which pattern is followed by EJB Remote interface & Container implementation class of that interface?Is there anyting mentioned in specs?This questoin was asked to me by many people.I think it is Command design pattern as it hides away all the details of actual business implementation.but ...

Please identify this pattern

825 byte By kollyhooda at 2007-9-29 11:44:00
Hi,I am currently involved in analyzing java source code, which runs to 1000's of lines. It is similiar to java.io package, where I have fundamental set of base interfaces, and several sub classes inheriting/implementing the base class and providing additional unique behaviours.I also have a ...

Message Driven Bean (Transaction Control Problem)

1720 byte By nakusera at 2007-9-29 11:54:36
I have a an MDB running in websphere, listening to messages from MQ series. The bean sends the message to a Session bean which has Transaction control settings set as Required. When the responce comes back from the Bean, Transaction manager tries to commit and release all the resources that are ...

Startup Class

228 byte By ng_kita at 2007-9-29 12:00:14
Hi All,I would like to know how to init the class during EJB container startup? (In my case, I do not have web container in my project, so it is impossible to init the class by servlet).Many ThanksKit

Using UML in a Software Requierements Specification (SRS)

187 byte By quereinsteigera at 2007-9-29 12:02:19
I am not sure whether it is a good idea, to use UML diagrams in a SRS instead of using only text. What do you think? And is it common? What are the best practices when writing SRS?

Any comprehensive doc on patterns, pls

439 byte By kollyhooda at 2007-9-29 12:12:34
Hi,I have decent amount of experience working java API's, but believe me I dont know much about patterns, So can someone provide me some link or a faq kind, where it shows , if the classes are like structure 'x' then its this pattern. for example-package test;interface a {}class b implements ...

MVC newbie

565 byte By k7777777aa at 2007-9-29 12:13:19
Hello All,Could anybody help me out? I have a small clarification....The client calls the controller servlet..The servlet sets the bean properties..The servlet forwards the request to the view..Now I would like to know as to which is the best way to access the data in the bean.?Can I have the ...

Uml for Java programmers

288 byte By __ralfer__a at 2007-9-29 12:15:35
Hi,I'm looking for documents describing UML profile for Java programmers i.e. how to express in UML typical Java elements. I mean package/friendly members visibility, inner classes, final classes and so on. The more - the better ;)Thanks in advance,__ralfer__

Java framework

289 byte By Glossya at 2007-9-29 12:16:03
Hello !I'm currently looking for information on java frameworks. I mean articles, books explaining principles of java framework using XML externalizers. Samples and documentation about existing frameworks like IBM's WSBCC also might be of interest.Thanks in advance.

What are object oriented concepts?

41 byte By ppatidar2001a at 2007-9-29 12:24:39
What are object oriented concepts?

model view control & JProgressBar

697 byte By t.k.k.a at 2007-9-29 12:25:55
hello,I didn't understand to handle with the Progressbar.For example when want to represent the download of a file:I have a class TransferE (Entity), which does the transfer of the fileI have a class TransferUI (User Interface) for the user interfaceI have a class TransferC (Control) between ...

Object Constructors

530 byte By IvanEmmanuela at 2007-9-29 12:41:37
Well, I heard this from my "Object Oriented Programming, Distributed Computing, and Web Services" teacher:A constructor cannot call any method on it's code. Of course you can code-it to call te method, but it would be bad OO programming. Is that true? If so... ALL JAVA OBJECT CONSTRCUTORS WORK ...

Information hiding rules

527 byte By sumithara at 2007-9-29 12:48:31
The fourth rule in information hiding says"Don't allow clients to know or invisibly affect a class's implementation details"There is an example given along with this which reads like so "For example, a client should not be able to alter an internal calculation's result by changing the state ...

Question

205 byte By nawaray82a at 2007-9-29 12:55:25
i am doing a project about face and voice recognition..so if anyone can help me with my interface design for my applicationi don't really know how to design it ..thankxx

What development technique to use?

337 byte By blue_harvestera at 2007-9-29 12:55:42
I'm in the research stage of my final year project which entails the development of a SVG authoring tool. The tool will allow the user to create graphics and save them as .svg files. The requirements of the tool are not fully defined yet but I would like your initial opinions on what direction ...

j2ee 1.4 general question

173 byte By balteoa at 2007-9-29 12:58:24
Hello,Can anyone tell me where is the official sun document describing what J2ee 1.4 is made up of (what version of jsp, ejb, servlet, jms, etc.)Julien

too many listeners?

400 byte By rkippena at 2007-9-29 12:59:29
How many listeners is too many listeners?For example, curves on a screen:Should each curve have a listener?Should each control point of the curve have a listener?How do you know when to stop?(Basically this is working towards creating an undo / redo architecture). All user actions can be ...

LogicalDriverManagerXAConnection not closed

923 byte By abr007a at 2007-9-29 12:59:56
I am getting the following error.I have closed the connection as connection.close() still i am getting that errorthe code i written is:connection = DriverManager.getConnection(urlString, user, passwd); Statement stmt = connection.createStatement();ResultSet rs = stmt.executeQuery("select ...

Where to close the DB connection?

442 byte By dave_d87a at 2007-9-29 13:05:01
In an architecture which uses JSPs as the presentation layer, and contains objects representing each table of an Oracle database (one object per table), should the connection processing be included in the JSPs, or should it be included within the method of each database object that prepares the ...

Where to include connection processing methods?

442 byte By dave_d87a at 2007-9-29 13:05:02
In an architecture which uses JSPs as the presentation layer, and contains objects representing each table of an Oracle database (one object per table), should the connection processing be included in the JSPs, or should it be included within the method of each database object that prepares the ...

article: Advanced DAO Programming

180 byte By scsulliva at 2007-9-29 13:09:13
If you are using the DAO pattern, you may be interested in this article.Advanced DAO Programming http://www.ibm.com/developerworks/library/j-dao/

Looking for a Domain Model

363 byte By quereinsteigera at 2007-9-29 13:22:53
I am looking for a Domain Model which I can download. It is no matter which kind it is as long as it is well designed and has solved a lot of different problems.It should have Business Objects like Article, Order and so on.I want to build a ERP framework so I need something for testing.Do you ...

for a generic Auditing Framework

329 byte By gvr123a at 2007-9-29 13:26:15
I need to design a generic framework for Auditing.Is there any generic framework for Auditing like log4j is for Logging in J2EE Enterprise Application.pleas send any links or any information about Auditing Framework or any example j2ee application which implements auditing features.Thanks in ...

Use Case

505 byte By kollyhooda at 2007-9-29 13:32:44
Hi,I briefly went through, 'UML user guide', and 'java patterns'. I also have some code to work on, So the concept that I am still not able to understand is about 'Use Cases'.I would like to derive use case from existing bunch of java classes which makes up a system. How do I identify the ...

Design Patterns: 'Program to an interface, not an impl.' and Factory Method

1413 byte By PaulPhuoca at 2007-9-29 13:38:59
Design Patterns: 'Program to an interface, not an implementation' and Factory Method.Hi All,I've 4 questions. And 1M thanks for your precious input. 1. OOAD steps:Requirement-->Use Cases-->Analysis Classes-->Sequence Diagrams-->CRC-->other UML diagrams if needed--> ...

JDBC a more pure OO approach, Factory pattern?

1457 byte By canardo80a at 2007-9-29 13:39:09
Hi,I am a student and trying to tackle a problem a little better than we have to just for self learning. During are databases unit we had to play with JDBC to connect query and update a databaseNow I did this simply all in a main method and took a very procedural approach to this.(it was after ...

Design Pattern for Discussion Forum

208 byte By muralimohan001a at 2007-9-29 13:41:03
Hi all,We have to develop a application similar to our discussion forum. Which Design Pattern is more useful? Can u discuss the archietecture? We use J2EE except EJB.Thanks,Murali

Where to place business logic (non EJB) ...

1817 byte By dbaker24a at 2007-9-29 13:50:08
I am struggling to understand the differences in transfer object, business objects and exactly how they fit into an architecture in my web application designs. For example, I am building a banner server and have the following classes ...Media- concrete class- Transfer object- only has get/set ...

Clean, acceptable or ugly?

1557 byte By hdevaana at 2007-9-29 13:58:03
L.S,I would like some feedback on the code design strategy illustrated below. I'm wondering if this is a 'completely valid', 'acceptable though not preferred' or 'hideously evil' way of providing initialization for a singleton class:private Myclass() {super();//...try {String fileName = ...

Domain logic in database

1315 byte By olmheima at 2007-9-29 14:03:27
Hi.I know this is off topic, but I need some feedback.My company is relativly new to J2EE. We are currently moving our existing application portfolio to J2EE from a two tier client-server architecture developed on Centura and Oracle. Our data model is pretty strong, and much of the domain logic ...

what pattern

512 byte By kshivapada at 2007-9-29 14:05:18
I have jdk1.4 on one machine and 1.3 on another machine. I would like to use 1.4 logging if 1.4 is available else custom logging. I have two LogUtil classes (LogUtil.java and LogUtil14.java). Depending on the situation I would like to use that particular logging. Unfortuantely, I have coded ...

Design

248 byte By ahgirla at 2007-9-29 14:06:06
may i know if flash can be place inside the java application?den wads the code for placing flash into the Jframe. is it possible? coz i dun seems to be able to find any code regarding it..thanks. i need to know it asap.. thanks

question about ServiceLocator pattern

469 byte By Nim_Sathia at 2007-9-29 14:12:12
Hi,I was wondering what would be the most approproate way to modify the serviceLocator pattern (from the core j2ee patterns book) to handle multiple initialContext? I.e, how do I modify the ServiceLocator to get the home from multiple remote servers?Do I get the client to pass in the ...

J2ee diagram

413 byte By 2481572a at 2007-9-29 14:23:21
Hi All,I齰e the three modules in my application(Permissions, ConfigSys and Security). Each module has several class in j2ee patterns(DAO,Helper,Transfer object) and interfaces too. I齧 making a only diagram of class with DAOs, Helpers and TOs classes, but it very large, this way it齭 right or I齰e ...

synchronizing view and model

754 byte By stipanova at 2007-9-29 14:26:57
How do you usually solve the following prloblem:I have a form (view - a JFrame with text fields) for entering data and an underlying object (data model). the form's text fields are mapped to the object's properties. for example, the object has props o.p1, o.p2 and o.p3 and the form has the ...