Urgent: Session beans

68 byte By J2EEGreenHorna at 2007-9-29 14:27:07
Can a stateless session bean inherit a stateful session bean?

rational rose reverse engineer bug?

555 byte By lmei007a at 2007-9-29 14:34:35
I have a problem to do reverse engineering via rational rose enterprise edition of 2002 on windows XP for my existing java project. If a class has multiple implementations, only the first inherit relationship will be shown. For example, if class A implements interface B, interface C and ...

reverse Engineering, with javadoc

350 byte By _edoA_a at 2007-9-29 14:39:52
Hi,I want know, if there is any tool, which can create some class-diagramswhich use javadoc-htmFiles, or the class/java-files as base.I ask this cause i don?t want a tool which you have to create a 'project' after you have write youre program only to get the class-diagram of youre program (I ...

usage Factory Method

1995 byte By 530093a at 2007-9-29 14:42:48
I am going to write an client-server app. Client-Server`s interaction uses XML dataMy server and client are work at the same design model.Client creates an message object, marshals it into XML data format (String) and sends this XML data to a Server.Server receives this XML data, gets from the ...

Session Facade

145 byte By vrayudua at 2007-9-29 14:50:36
Hi,I am new to design patterns.Can any one help me out by giving one good example..(prefer code)thanks,vrayudu

Pagination using Value List Handler

1963 byte By rohit_wazira at 2007-9-29 14:52:02
Hi, We have a case in question wherein we have to retrieve 70K to 1Lac records from ORACLE 9 DB (say records A). We get this using a call from our stateless Session Bean through to a DAO which interacts with the database to fetch the records. These records are then used to populate info objects ...

errors in reverse engineering process using rational rose

1964 byte By a_w_z_sa at 2007-9-29 15:00:14
Hi i am getting errors in reverse engneering process of making diagrams from java code.here si the loge file but i am not able to know the cause.00:18:13| ...

Spawning Internal Frames

894 byte By Onyaweb_a at 2007-9-29 15:01:01
I am having trouble deciding how to go about controlling the objects in my application. I want to have a JDesktopPane which when selecting menu options will spawn internal frames. The internal frames should themselves be able to spawn other internal frames.My question is how is this normally ...

To fill a Transfer Object

153 byte By 2481572a at 2007-9-29 15:07:16
In my application, I need to create and fill a TO to insert. Who is the responsible to do it in client tier? JSP or Servlet? []齭Luiz

Business Logic

566 byte By flam70a at 2007-9-29 15:10:19
I'm working on a web site using Servlet/JSP/Struts technology and MySQL as data store. I use DAO Pattern in order to encapsulate DB access into DAO (Integration tiers).My problem is as follow : i read that it is a bad way to call DAO methods directly from Servlet. Hence, i would like to create ...

UML: From ER to UML to JAVA : many-to-many relationship implementation.

1650 byte By PaulPhuoca at 2007-9-29 15:14:34
Hi All,Basically, I just want to know if we have point 1 (ER), then is point 2 (UML) and point 3 (JAVA) correct? 1M Thanks.1. ER-wise, we have a many-to-many relationships between 2 tables A and B. Its implementation is:Table_AID PKTable_BID PKTable_ABID FK REFERENCED TO TABLE_AID FK REFERENCED ...

authenticate users against ldap using weblogic ldap realm

312 byte By vld123a at 2007-9-29 15:18:46
In my application, I need to authenticate users in ldap using the weblogic ldap realm.I can authenticate users in a particular group by giving the group name in the web.xml file.But to authenticate a user, what do i specify in my web.xml file.Can anyone help me on this.Thanks ...

Factory methods without switch statements

3590 byte By iainmcgina at 2007-9-29 15:20:54
Hello all,I will start by describing the problem I'm trying to solve. I am recieving UDP packets from another program (which isn't in Java, but that's not important here) and I would like to decode the bytes contained within the packet into an object representation of the data that is easy ...

JBuilder and UML Class Diagrams?

220 byte By blue_harvestera at 2007-9-29 15:22:58
What version of JBuilder allows you to generate UML Class Diagrams from the Java code? I was thinking of downloading the free personal edition of JBuilder, but I'm not sure whether this functionality is included.

questions on views deign pattern

508 byte By richardwata at 2007-9-29 15:23:11
i have constructed a Queue and also build a QueueListener too.the main purpose of QueueListener is to notify when some object is added or removed, the behavior just like ActionListenerthe problem is : i have quite a lot of packages or panelsthe Queue have been constucted in the main framehow ...

UML: Rel. with association class having attrib. Are they equivalent?

746 byte By PaulPhuoca at 2007-9-29 15:32:08
Hi All, (and 1M Thanks.)Notation: : Bidirection1: cardinality One*: cardinality many................: I draw it to graphically shown the association class ABQuestion 1: Is point 1 and 2 equivalent from the implementation perspective?Question 2: Likewise, Is point 3 and 4 equivalent from the ...

Requirements engineering question

565 byte By blue_harvestera at 2007-9-29 15:32:54
Is this the right place to ask about requirements engineering?Anyway, I was wondering whether a stakeholder in a system can be another system? I read in text books that a stakeholder is someone or some organisation that are affected in some way by the system.Example:If System_A sends ...

DAO - Static methods vs multiple class instantiations

1232 byte By jcc123a at 2007-9-29 15:45:29
HelloThe Data Access Object pattern (DAO) is a well known pattern that is used with domain models, even when using Entity Beans. However, normally, the pattern involves instantiating extra objects, rather than using static methods.So for example, it is not unusual to have an entity bean and 2 ...

Vehicle congestion control problem

1721 byte By sachin007_bonda at 2007-9-29 15:47:14
Can anyone help me with this task. I am a beginner at ArgoUML, and I want to create a .zargo file with:1.Use-case diagram2.Class diagram with only class names3.Classs diagram with inheritance4.Class diagram with attributes5.Class diagram including methods6.Sequence diagrams7.Collaboration ...

integration pattern

1733 byte By kollyhooda at 2007-9-29 15:56:29
Hi Geeks,Could someone suggest me of some best practices in integrating two API's. As a result of my homework, I can think of having a singleton object in between the two api's that needs to be integrated.I vote for 'Singlton' class, because this class act's as a connecting pipe between ...

Concepts OO

130 byte By Irmaoa at 2007-9-29 15:57:44
Hello friends!I looking for sites with concepts about OO (in Java).I am a new programmer in technologies Java

a question of code design

1317 byte By Maurice_Ta at 2007-9-29 16:02:39
many times i stumble over a problem, concerning the desing of my code.i think i can describe the situation best on a game-example. imaging i have a manager class for may game, which holds all of my game objects (space ships, landscape, what the heck) and schedules them for animation etc.the ...

Software Release Patterns

389 byte By anonpa at 2007-9-29 16:08:33
Hi,What sort of strategies do you usually use to manage software releases? Let say you have released Version 1.0 of your product, and you are actively developing version 2.0. How do you patch 1.0's bugs? I imagine most people would use branching to solve this issue. However, there are a lot ...

reverse engineering data model

129 byte By it_qooa at 2007-9-29 16:08:37
Can rational rose reverse enginner data model from database (i.e. read the schema in db and then generate the ER diagram)?

adhoc/universal polymorphism

277 byte By renjithkva at 2007-9-29 16:11:23
Can you just give me some good examples of adhoc and universal polymorphism. http://www.javaworld.com/javaworld/jw-04-2001/jw-0413-polymorph_p.htmlI have gone through the link and i couldnt find itplease give me more examples Renjith.

How business object be used in such worst situation?

634 byte By 96472834a at 2007-9-29 16:16:28
What I get from front end (thick client) is a large value object with undefined data type (data in vector or hashtable), it 's difficult to extract the data from the object in business logic layer. Eg. in gui, data managed in table, and I need to extract the data in the business tier, such ...

Use of synchronisation with the SUN DAO Pattern

3905 byte By Alan_Ga at 2007-9-29 16:20:04
With reference to the design pattern Core J2EE Patterns Data Access Object: http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.htmlI am writing a DAO package to handle access to multiple datasources at a record level (e.g. user records may be located at datasource A, but ...

DB Access Using JDO,Entity Bean,JDBC,DAO,or...?

181 byte By baofengmaila at 2007-9-29 16:21:28
DB Access Using JDO,Entity Bean,JDBC,DAO,or...? A MES project,which solution is best? And which is proved? Any advantege and disadvantege?Give me your advice please...

Optimizing Code.

810 byte By JavaDanDBDa at 2007-9-29 16:23:41
public class CVSTagReader { public final static String cvsTag; static {cvsTag = "$Name: October $".substring(6, "$Name: October $".indexOf("$", 3) - 1).trim().replace('_', '.'); }}<%=CVSTagReader.cvsTag%>public class CVSTagReader { private final static String rawTag = "$Name: $"; ...

Use Case Diagrams

536 byte By alexburtta at 2007-9-29 16:25:46
Hoping someone could give me a little information if possible.I have recently been asked to provide some Use Case diagrams for a program, which I am designing in Together 6.0, but i haven't had any experiene in Use Case diagrams, and i went to the Borland website, which produced for me a ...

Anyone know a good Non-Gang of Four Design Pattern?

192 byte By GoldenArmKida at 2007-9-29 16:42:13
Anyone know a good Non-Gang of Four Design Pattern that I can do a research on? let me know and give me some links the pattern if possible. ThanksThe Kid With A Golden Arm

code for Aggregation and Composition

235 byte By trivedirakesha at 2007-9-29 16:48:31
Hi All,If there are two classes A and B they have aggregation Relationship . Also there is C and D class having Composition Relationship .If I want to show them by writing a Code how to represent them.Thanks

DAO pattern question

556 byte By it_qooa at 2007-9-29 16:54:21
According to the DAO pattern, all fields of the table has to be put in the class, e.g. if I have a table called customer, I have to create a Customer class and then I have another class called CustomerDAO class. In CustomerDAO, I should have a method called getCustomer that returns Customer. ...

class multiple instances - logging pattern

1138 byte By ismukunda at 2007-9-29 16:54:24
Hi,I have a set of class a.class, b.class, c.class...z.class that can be run be given a product name say product1.I have the same set of classes a.class, b.class, c.class...z.class that can be run be given a different product name say product2.Both product1 and product2 behave in a similar ...

erroe while configering jbuilder for Oracle9iAS

1559 byte By kiranchandra1a at 2007-9-29 16:55:13
hi,when i configured and tried to run a jsp client for my ejb,i am getting the following error.could anybody give some clue.I configured the oracle 9iAs 9.0.2 to my jbuilder9 and i am running the server from there.error: Invalid class file format in ...

UML Templates For Visio

471 byte By duffymoa at 2007-9-29 16:58:26
I heard Martin Fowler speak a week ago. He had a lot to say about UML 2.0, which I won't go into now.He said when he wants to create UML diagrams for books he uses Visio with a UML template that was allegedly better than the one M$ ships and was "available on my Web site".I've gone to ...

How to handle long running Processes in J2EE

591 byte By Rene-Ga at 2007-9-29 16:59:27
Hi all,we want to design something like a process engine on our application server. It should be possible to start processes asynchronous, so we think what we need is a message driven bean to start processes.The problem is that there are different states while running the process and it should ...

Caching in an ejb

315 byte By matthew_j_stonea at 2007-9-29 17:07:56
I want a web service that acts as a proxy/adapter to an ejb. The problem is the web service caches its data and I want to move that cache to the ejb. How do I implement a custom cache in an ejb? Are there any patterns or a variation of a pattern to facilitate this ...

Reqd help - reverse engineering

444 byte By abatra_75a at 2007-9-29 17:09:11
Hi,I am working on a existing J2EE / Java project with no documentation at all...and its a huge project deployed on weblogic 6.1. How can i generate the sequence diagram with the help of these classes OR can anybody suggest me what is the right approach to understand these type of projects and ...

Mapping XML and Database

1803 byte By ashant_praa at 2007-9-29 17:28:18
Hi, I have a design problem in my application. It goes on like this:For every XML Request-Response query, I have a Session Bean which accesses database tables. I have to refer to 4-5 tables to fulfil each request. All the tables follow the parent-child relationship(onto 4-5 levels, depending ...

Is UML Used In Industry?

1608 byte By Joey122a at 2007-9-29 17:28:21
Developers, I have read several books on UML and software engineering priniples including OReilly and Fowler books.Now what i would like to know is has anyone designed a program where they did all these fancy picyures BEFORE starting writing code. You see i propose that all this UML stuff is ...

Struts facing problem......

502 byte By shonarka at 2007-9-29 17:34:26
Hi all, I am trying to communicate between two weblogic servers , i.e. i hav e two applicaitons and i want to communicate between them using struts.(This is done for single sign on for our applications).But i am not able to transfer the control from the action class of one applicaiton (in say ...

Singleton Pattern

1669 byte By patelk9a at 2007-9-29 17:35:53
Hi,I am creating a Singleton class, so that only one instance of a object can ever be created. I am however getting an error with my code where I call the below command which is in my code below:'instance = new ldapConnection(userID, pwd);' I am not sure why it is complaining about the code - ...

DataSource Best Practice ?

693 byte By mihut_ma at 2007-9-29 17:44:22
I am working at a JSPs/Servlets/JavaBeans web application. I have a DataSource that provides DB connections. It is setup in Websphere 5. All of my components ( JSP/Servlet/JavaBean ) may need at some point to access the DB.What is a good practice, to have a bean (singleton class) that makes ...

visitor/multiple dispatch or? ...

2123 byte By JosHorsmeiera at 2007-9-29 17:44:34
Greetings and salutations,I'm struggling with a bit of a mess (solely created by me and myself). Suppose a bunch of types (classes) exist, say, T_1, T_2, ... T_n, implementing a single interface or inheriting from some (abstract) base class T. Also assume that some 'applicators' exit, say, ...

The "ValueList Handler" pattern in "Core j2ee patterns(2nd ed)"

759 byte By Galam_Ga at 2007-9-29 17:45:21
In the book "Core j2ee patterns(2nd ed)", it suggests that the "ValueList Handler" pattern can be used when the resultset from database is huge. Basically, this is what it will do:1) obtain a resultset from database query2) cache the full resultset using a valueList3) create a subList from the ...

association/dependency

164 byte By it_qooa at 2007-9-29 17:52:12
I'am quite confused by assoication and dependency. In which case should I use association and in which case should I use dependency?Thanks in advance

A bit of help in IDE's

863 byte By prashantkumar1982a at 2007-9-29 17:59:44
Well, I have been programming in JAVA for quite a time now, and am very comfortable with it. I work in textpad, and haven't used any of the advanced IDE's till now. But I think gui building is too slow without an IDE.There are some IDE's available, can someone help me in deciding, as to wat ...

Design idea for managing user preferences(specifilly tables))

683 byte By Georgy_Dimitrova at 2007-9-29 18:05:22
Hi, I nave a requirement to save the widths, order and visibility of table columns and restore them on next open. What I want to find is information of good ways that others use to solve this issue. I had a look at the preferences API and think to use it to store the preferences. Of course the ...

Seperating presentation from 'business logic'

8223 byte By javasprouta at 2007-9-29 18:11:06
I have a program for keeping track of games played and keeping a league table. However, I currently think the way I do the output of the league table using the toString() function shown later is a pretty poor way to do it. OK, let's be honest, it sucks!My idea is to have some sort of ...