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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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
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 ...
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) ...
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: ...
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 ...
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. ...
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.
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 ...
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.
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.
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.
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 ...
Culd anyone explain me then with an example?Thanks in advance.
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 ...
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 ...
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 ...
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 +"] ...
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 ...
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!
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 ...
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 ...
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 ...
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?
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 ...
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?
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
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 ...
Do Struts have patterns? How to work on Struts. ITs new.Kiran
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 ...