From Scratch

1247 byte By lithousa at 2007-9-29 21:14:03
I searched the forum and didn't see if this question was asked before (but it could be because it is so general that I am not using the right key words. Basically, I don't like being average or below avarage in software design and I really want to get moving in the right direction to be ...

JMS | To Be or Not to Be

1116 byte By amit_batraa at 2007-9-29 21:18:05
We are building a J2EE application that needs to be robust, scalable and fast and asynchronous.Our architecture consists of an "interface server" (i.e. the machine deploying the front-end JSPs and Servlets) and a JMS queue for holding the incoming user requests.This will be backed with a ...

Value Object using JAXB

346 byte By bctjavaa at 2007-9-29 21:19:27
Has anybody tried using JAXB to generate the classes for a Value Object pattern? It appears that JAXB is using some internal class loaders that make a J2EE EJB unable to locate the classes. I can't believe JAXB is not compliant with J2EE. Thanks for nothing Sun!I'm using J2EE 1.4, JBoss ...

Error using Struts + ATG Dynamo 6.0 + Solaris

2579 byte By B.Swananda at 2007-9-29 21:20:59
Hi all,I get the following error when i go to a specific page in my application. This too happens randomly, i.e. not guaranteed. Sometime the error is shown, and sometimes the application run without such a problem, for a long time. I am using a Struts ,ATG Dynamo 6.0 and solaris.What could be ...

Which Pattern to use?

851 byte By leornunga at 2007-9-29 21:23:37
I believe I have a typical situation where a standard pattern would make a good fit to solve the problem, but I don't know which one to use. Any advice is appreciated. I think I should use a factory or an adapter or a bridge, but I don't know.Here's the situation:I want to be able to use the ...

Question about DAO pattern

171 byte By Jade_Javaa at 2007-9-29 21:24:28
Greetings.If I'm using EJB's in my application when does DAO fits in? I mean, it is DAO an alternative to EJB's or a complement ?Thanks in advance.

COoL IQ question ....

328 byte By caps25a at 2007-9-29 21:25:04
hi guys we just started learnin java and teacher are comin up with lots of IQ question... although its simple ... we hope we could find so extra help from here...questions are something like this ********************u know like different pattern and design... such a ...

Multiple interactions pattern

3130 byte By jdupreza at 2007-9-29 21:28:41
Hello,in the context of for-the-fun programming (game, simulation,...), I have often faced the problem of scaling multiple interactions between growing numbers of types, all with unforseable new capabilities.I am looking for the appropriate combinations of patterns to minimize the impact ...

Compressing data objects

407 byte By bsudhindraa at 2007-9-29 21:28:52
I retrieve a huge amount of data from a database (through a session bean), transfer it in a dataobject back to the servlet, which puts it in the session for the JSP to access. Is there any method by which I can keep this dataobject in a compressed state ? Both while transferring from the bean ...

Value objects split on different jPanels (GUI)

728 byte By marcjohnena at 2007-9-29 21:45:15
Hello,we are developing a new GUI for our system and met the following problem.Several vos are needed on different panels in the gui. Now if I change the datain one panel I must be able to commit the changes (or make a reset) for this onepanel without committing (reseting) the changes of the ...

Private methods in DAO Implementation

359 byte By ramtechiesa at 2007-9-29 21:46:18
We are using DAO Implementation behind a Stateless session EJB. EJB is being used as a Business Object having all the business logic. In this scenario, I feel DAO should not have any private methods as the control of work flow have to be with the EJB. Is this OK? or having private methods ...

Workflow Authorization Modules

324 byte By psummers8a at 2007-9-29 21:54:01
Can anyone recommend any good sites or papers or anything on creating WorkFlow Authorization models? We're building a web-based workflow application and are exploring different methods of building a flexible authorization system for different user's, roles, actions and tasks. Any help would ...

Rational installation problem

232 byte By jinhaimina at 2007-9-29 22:06:48
HiWhen I try to install any Rational product - like Rational XDE and Rational Rose, I have the following error:Unable to register datamodeler.dll.W2000 SP4.Any suggestions?Thanks in advance.

More then a Deployment Diagram

729 byte By spielera at 2007-9-29 22:08:22
Hi,to my understanding a deployment diagram describes how an application looks like once it is deployed:- Component a - c are deployed on node x- Component d is deployed on node y and so on.But how do I describe the development and deployment process itself?This is important for me since for ...

What design should be adopted?

630 byte By gak2000a at 2007-9-29 22:09:38
Hi,The scenario is as follows, I got a one big super class A, which has numerous methods in it . Class B,C and D are derived from class A and overide the methods which are implemented in class A.The problem is the size of class A, which growing too big. The responsibilities of class A is ...

Good OO design

1111 byte By Ahmad_qauoda at 2007-9-29 22:14:32
Hi all ...I want to build a System in java but I can't find a good design for my classes and how to seperate it into packgesfor example : The menu bar ...class MyMenuBar extends JMenuBar {JMenu file ....JMenu edit .......public MyMenuBar(){// set all menu and menu items}}the handler for the ...

OO Class Design Question

1777 byte By delwaresoftwarea at 2007-9-29 22:17:10
Hey everyone,I have a general OO question. Assume the following:Person - Holds demographic information and contact information for all peopleUser - is a personTeacher - is a person Now. The same person can be both a teacher and a user. There are some required fields for a user that are not ...

Transfer Object loader constraints

501 byte By J_Carra at 2007-9-29 22:20:44
If both EJBs and POJOs require access to the same TO, then where do I put the class?I thought that EJB's had their own class loader, so I included the TO in the EJB jar and deployed it. However, when I use a POJO in my main application I get errors about violating class loader constraints.The ...

UML diagrams mapped to code?

387 byte By dimitri809a at 2007-9-29 22:21:36
Hello, I have the following question?Is there any online tutorial or literature presenting sample mapping to code of more complicated(and bigger) UML diagrams,than the trivial one to one, many to one, many to many associations. As you can imagine, things get more complicated easily,especially ...

Web Application needs to access Windows API

146 byte By BD_Enterprisesa at 2007-9-29 22:22:28
What is the best way to do this?Can Java call DLLs?Is the best method to create a Browser Plug In?thanks ahead of time

Server side refreshing

257 byte By torajeevraja at 2007-9-29 22:23:25
Hi,Is it possible to refresh the client browser from the server ? Server can always trap the incoming client IP address. So instead of client side refreshing, is it possible to refresh client browser through server ?Thanks,Rajeev

Agregation vs Normal Association in Java?

281 byte By claytonvaldoa at 2007-9-29 22:26:15
Hello,I would like to know what's the main difference when I have to implement Agregation and Normal Association in Java?I would like to see an example of these OO concepts implemented in Java!!!Thanks for any help.Regards--Clayton

Best Architecture?

1185 byte By BD_Enterprisesa at 2007-9-29 22:27:59
1) We are trying to put together a client server application for our department to use as a whole. 2) The client application needs to make Windows API calls, collect information, and send it back to the common server.3) My problem is selecting the best architecture for our application.4) If I ...

Database semantics: what would you do?

1997 byte By SSvetlanaa at 2007-9-29 22:29:57
I have the following table that supposed to reflect contents for a given scientific procedure:CREATE TABLE Protocols (ProtocolID INT NOT NULL AUTO_INCREMENT, Version CHAR(50),Title CHAR(150) NOT NULL,Body LONGTEXT NOT NULL,ModifTime TIMESTAMP,CreationTime TIMESTAMP,Comment VARCHAR(200) ...

Apache Ant 6.1 setup problem

606 byte By sVenkatcnua at 2007-9-29 22:32:03
hi , i unzipped(installed) apache-ant-1.6.0 in this location D:\ANT\apache-ant-1.6.0.and i configure like thisANT_HOME=D:\ANTPATH=%ANT_HOME%\bin;JAVA_HOME=C:\j2sdk1.4.0_01but when i run 'ant' at console its giving following exceptionjava.lang.InstantiationException: ...

OO Design

852 byte By Achu25a at 2007-9-29 22:36:40
Hi,I was wondering if someone could point out a good OO design for the following scenarioALso please indicate what appropriate 1. Java Technology 2. design patterns3. security concers4. Performance optimizers PROBLEM:Writing a client which displays new records fron an Oracle database which gets ...

Specific SDK implementation - Design Issue

2486 byte By rajesh_b_2ka at 2007-9-29 22:39:36
Hello All, We have a Software Development Kit (SDK) which is specific to our application. We have the "Interfaces" defined for it. Software developers use this SDK to process the information coming from various devices. Now we are in the process of developing a sample reference implementation. ...

About DAO pattern

291 byte By VimalMahesha at 2007-9-29 22:39:59
Hi,1. Could u tell me what's the difference between entity bean and DAO?2. What's the advantage of using Entity bean over DAO and Vice versa?3. And for which kind of problems I can go for DAO?Reply me as early as possible.Thanks in Advance.

Static Interface Fields

388 byte By Mordana at 2007-9-29 22:42:09
public interface interface {static public field = 1;public void methods();}when is this correct to use in the OOP/Software Pattern paradigm?I thought interfaces were only there to define behaviors (i.e. methods) What are static fields doing here?Why are static methods not allowed in interfaces ...

How to create Diagram from Source Code?

235 byte By wew64a at 2007-9-29 22:42:23
Is there any UML tools that will create the UML, CLASS, Interaction diagrams from my source code?I have a large project, I did not design that has no documention. A tool like this could save me lots of time.Thanks.

embedded tomcat using JMX

180 byte By javababy1a at 2007-9-29 22:42:50
I am trying to find some sample code that shows how to embed tomcat 5 into a java application using JMX. Has anyone seen any? Or know where I can get some ?thank you.

Application of OOAD and Software Development

209 byte By Natalie999a at 2007-9-29 22:44:00
I was asked this question: "why do you believe application of OOAD techniques is important in software development?"I would like to gather ideas about proper answers to the question. Please help.

managing large applications

419 byte By csjrhterrgra at 2007-9-29 22:45:32
Hi everyone!I'm developing a large business app with hundreds of beans. This results in a project of thousands of files. I think of separating this project in several single projects. The problem is that there is a high interaction between the beans so every bean class needs to import classes ...

BUSINESS DELEGATE PATTERN AND DAO

76 byte By charly10000a at 2007-9-29 22:55:04
Culd anyone explain me then with an example?Thanks in advance.

Implementing patterns

407 byte By smita_d62000a at 2007-9-29 22:57:26
Hi All,We are using EJB1.1. We have defined separate entity bean for each table.But as the no. of tables are increasing so the no. of entity beans & this is causing lot of memory problems.Can anyone suggest suitable pattern.From the patterns i know , Entity bean composite model serves this ...

Passing parameters to login page

300 byte By tonic48a at 2007-9-29 22:58:04
Is there some way to personalise the form authentication page of a context by passing a parameter? I want to change an image of the login page depending on the origin page of the user(page where it refers from). Is this possible? I am using JBOSS. Any help is ...

Bad OO Design

2701 byte By lithousa at 2007-9-29 23:01:30
Recently a fellow developer and I were talking about how to implement something and he made a statement that I wasn't sure if I should buy into it. The statement basically said that if you allow someone to access a Collection which is a data member of an object then that breaks OOP best ...

Strategy pattern question.

3345 byte By javaGirl04a at 2007-9-29 23:03:04
Can the following scenario be called strategy pattern? public class StrategyExecutor {public static void main(String[] args) {Strategy[] strategies = {new FirstImpl(), new SecondImpl()};for(int i = 0; i < strategies.length; i++){System.out.print("Strategy ["+ i +"] ...

optimistic locking

381 byte By spenhoeta at 2007-9-29 23:05:13
I am about to implement an optimistic locking :- I'll add a timestamp column in my table.- I'll add a session-fa齛de method which will do the reading before the writing in a single transaction.As the optimistic locking is not available as a webapp server's option with weblo 6.1, Is this the ...

I18n What is the best choose: Servlet or Action Class ?

261 byte By sergioflora at 2007-9-29 23:05:24
I need to implement a internationalization functionality in my web site. I would like to know about the best choose to do this. Should I implement the changeLocale algorithms with a Servlet class or with a simple Action Class ? Thanks and Regards!

DYnamic Tables and J2EE Patterns

429 byte By Jobinesha at 2007-9-29 23:11:16
Hi,In an application we've to create tables dynamically depending upon certain criteria. So we opted to go for DAO paterns. But bit confused about the transfer of data between client and server. Client is a Swing based application. There are two solutions for us.1.Use XML representing the ...

design model

1218 byte By ben78a at 2007-9-29 23:12:21
Hi,I'm trying to build a web application which will follow the MVC model. The Controllers will be servlets, Views = JSPs and Model = Java classes (or javabeans). I made a class diagram and each of the RDBMS tables are represented by a java class. I have a Company class. It has the following ...

Static Methods, the case of HashMap

821 byte By Mordana at 2007-9-29 23:12:27
static int hash(Object x) {int h = x.hashCode();h += ~(h << 9);h ^= (h >>> 14);h += (h << 4);h ^= (h >>> 10);return h;I was cruising the HashMap class. And I noticed right away that all non interface methods were static package methods. Now isn't that bad OOP ...

MDB and Client transaction

294 byte By Jobinesha at 2007-9-29 23:25:53
Is there any stadard patterns for achnowledging the client from the MDB regarding the success of a method call.I can make the client to listen on a particular Queue/Topic and MDB can send the status to this configured Queue or Topic.Is there any other alternative for this?

Internationalization

350 byte By torajeevraja at 2007-9-29 23:26:26
Is there any way to identify the incoming request for Locale ? Suppose my web application supports internatioanlization,and request comes from japan,china and germany? How can my application identify the incoming Locale request and serve the Locale Specific contents? is there any way to ...

Singleton or static methods for DAO?

194 byte By cybotxa at 2007-9-29 23:31:42
Which is the preferred way of creating a DAO which has no state and won't need multi implemention of its. IE: DAO--> MYSQLDAO OR OrcaleDAO.Singleton or static methods for DAO?

Singleton Giveback To PaulPhuoc

117 byte By duffymoa at 2007-9-29 23:33:53
Paul, I'm as good as my word. Post a reply to this thread and I'll return that undeserved Duke. - MOD

Method overriding

763 byte By Mordana at 2007-9-29 23:37:00
[code]public class AClass { /** Method specification */public void doSomething() {}}public class Subclass extends AClass { /** Subclass Method specification =? AClass Method specification */public void doSomething() {}}[\code]My question is kinda conceptual. Should the specification of an ...

How to work on Struts

75 byte By kirankumar_ja at 2007-9-29 23:38:40
Do Struts have patterns? How to work on Struts. ITs new.Kiran

J2EE equivalent to c.newInstance()

654 byte By brianmcga at 2007-9-29 23:42:53
I'm used to J2SE but new to J2EE.I'n the past I've frequently used factory classes to create instances of classes at run time e.g.Class c = Class.forName(className); //get the Class object// corresponding to the class name using reflectiontry{Object obj = c.newInstance(); //get an instance ...