Generic Attribute Access Pattern

544 byte By Marchionia at 2007-9-27 7:13:59
Hi all, I'd like to implement my BMP Beans with the Generic Attribute Access Pattern. So instead of using get/set methods I simply do get/put of the HashMap stored in the EJB. Now my question is: how to I implement persitance of data on the DB with this pattern ? Do I have to move the content ...

shotest path code help

5867 byte By Xman02a at 2007-9-27 7:33:09
Hi, i am stuck with this piece of code, not sure how to finish it up. Have modyfied as per requirement, but Still 2 more parts to add:1) Enteingr a node identifier, such as "F" when prompted.2) To see the path from the specified node back to the START node.The user enters "exit" to halt the ...

Alternate solution to avoid using Vectors, HashMaps or Hashtables

799 byte By Kbaratha at 2007-9-27 7:34:04
We have developd an application for our client. The architecture is such that, each and every request from the web browser is processes by a servlet which parses an xml file and looks up the appropriate session bean where in the corresponding DAO is called to access the data base. The Resul Set ...

write updated data from a Value List Handler to the db

353 byte By Mlinara at 2007-9-27 7:42:26
I am using the Value List Handler Pattern to read a large set of data. My DAO returns a HashTable containing VOs. The data is displayed as a HTML from and can be edited -> so I need to write the changed data back to the database (in bad cases the whole HashTable). Any suggestions how to do ...

creating .ear file by ANT tool, pl. help me....

4311 byte By userid74a at 2007-9-27 7:58:10
Hi,I have created .ear file by using ANT tool. But if this is opened by J2EE RI Server, it is not being opened and it is saying that the .ear is corrupted.Here is my build.xml file for creating .ear file<project name="training" default="make-ear" basedir="."><!-- compilation parameters ...

Best way to lookup EJBs

343 byte By ch75a at 2007-9-27 8:07:35
Hi,We have a series of session beans which would be used by both Web clients residing in the same container as the EJBs and remote Java application clients.I want to have a single class which would be used by both these clients to lookup the EJBs. Can somebody suggest a way to do ...

You know the Answer....

206 byte By nomy_with_javaa at 2007-9-27 8:19:06
Hi dear..!Is there any API or method with the help of which, i can know the Telephone number of the client who connect with my site( Servlets ) or is it possible or not.......... Plzz help me?

MVC without servlet+jsp ?

457 byte By nicolas.ocquidanta at 2007-9-27 8:25:10
HelloI'm looking for an example (or ideas...) of the MVC paradigm butwithout the web part (with only fat Java clients).I haven't take a look at the proxy class in Java. Is it possible touse proxies to access the front controller session bean (which is normallyaccessed by a main servlet to ...

Checking UML pattern correctness

194 byte By Olexiya at 2007-9-27 8:38:16
Hi, allThere are many standard patterns in J2EE, but I can't find any information how to check correctness of UML diagram on correspondence with these patterns by QA.Thanks

Session tracking with Struts

1224 byte By JulienVa at 2007-9-27 8:46:45
Hi,I would like some informations about the session with Struts.First of all, how the URL rewriting works. In the documentation I read "tag link automaticaly apply URL rewriting", but how does it work ? To track a session Struts uses URL rewriting or the cookies ?In the struts example, we can ...

Sun's Page-by-Page Iterator design pattern

274 byte By scsulliva at 2007-9-27 8:49:03
I plan to use the Page-by-Page Iterator pattern in one of my web applications: http://java.sun.com/blueprints/patterns/j2ee_patterns/page_by_page_iterator/index.htmlI am looking for additional references (books, articles, URL's) regarding this subject.

JTAPI (default provider can not be instentiated)

237 byte By ziageea at 2007-9-27 9:21:49
Hi,I am trying to run a simple program which should detect incoming call. but prgram is trhought following exception'default provider can not be instentiated'looking forward for ur responsezia

OO Design Books

617 byte By glenn_dollarda at 2007-9-27 9:24:12
Hi,I have been coding with Java for about 3 years now. Recently I realised how little I knew about WHY we code in certain ways and what are best design approaches to take. I have taken a look at a few 'Design Patterns' books but I am still asking such questions!Does anyone recommend a book ...

J2EE Design Question -- Am I On The Right Track?

2677 byte By jiapei_jena at 2007-9-27 9:28:29
There are multiple tables in my database. Each table has a primary key, and the table that relates to other tables has foreign keys. I have to match the primary key and foreign key to go from one table to another. The specifics are spelled out below: The first table has login, pwd, and a ...

Service Locator Problem

482 byte By neetukumara at 2007-9-27 9:48:51
We have just started with the New Project & just discussing Architecture. We want to use Service LOCATOR Pattern ..but with some modifications. We want BUSINESS DELEGATE to keep the track of all teh HOME OBJECTS ..& before actually going to SERVICE LOCATOR for teh Request , it sud look ...

FrontController servlet pattern

556 byte By smithsa at 2007-9-27 9:53:08
How do other people using the FrontController servlet pattern manage external links for things like stylesheets, images, etc? Before we had jsp's and other things directly linked, and we used relative paths. We did this so that our application would be completely independent of it's context ...

Restricting 2 java instance running on the same machine

367 byte By balabaska at 2007-9-27 9:56:24
Hi, I need to restrict 2 instance of the same program on a single machine. how to acheive this. eg) consider a helloworld java programm run from 2 different command prompti need to bring the first instance on top when ever the user tries to run another instance from the same machineany ...

One basic question..

217 byte By d_anand123a at 2007-9-27 10:15:07
Hi All,I have a very basic level question When should I use SessionBean and when should I use EntityBean? An illustration with some link to resource will be really helpfulThank youA.

Using a Cache Singleton implementation from an EJB

958 byte By akorduna at 2007-9-27 10:34:43
This is a general question that I have about the use of a singleton class from an EJBs. I want to create a cache in the form of a singleton (suppose for now, no server clustering). The goal of this cache would be to speed access to a database. Different users logging into the system would ...

Using a servlet for each view

534 byte By ranga_deva at 2007-9-27 10:36:09
Hi, Is the following architecture a good one? JSP View1 > FrontControllerServlet -> Servlet1 --> JSP View2 JSP View2 > FrontControllerServlet -> Servlet2 --> JSP View3 JSP View7 > FrontControllerServlet -> Servlet5 --> JSP View4 ... ... In other words, all the views ...

error occur when i config jbuilder7+weblogic7.help!!

1650 byte By wengchiyuana at 2007-9-27 11:04:24
i configed jbuilder7+weblogic7 ,but when i run the test.jsp with weblogic in jbuilder's project. two error occur :<2002-7-1 下午12时10分40秒> <Warning> <Management> <000000> < -Dweblogic.Domain=<domainName> is no longer a required command line option, if you don't ...

Workflow pattern

460 byte By mike_sikaloa at 2007-9-27 11:20:48
Hi All,could anybody recommend some standard approaches for workflow implementation? Following features are required:- create forms and processing components to be used in workflow;- configure worflow: define which forms to be displayed, where data should be processed, next form/action etc...- ...

Why not introduce a "but" condition?

691 byte By alexanderHa at 2007-9-27 11:23:03
Hi,why not introduce a "but" condition into the Java language?Here's an example:if(earth.isUnderAttack()){牋爂o to 10}but if(earth.getAttack().getAttacker().equals("alien") && earth.getStatus().equals("nice place")){牋爂o to 20}else{牋爂o to 30}Doesn't it look nicer, rather then doing it ...

Facade Pattern - Controller Load

646 byte By kulkhsuna at 2007-9-27 11:55:14
I was just pondering about the predicament of a Controller Servlet in a facade pattern.Say, Iam following the conventional MVC architecture with just one controller servlet. Every request that is submitted must go through this servlet only. For example, ...

J2EE guidelines mix up?

806 byte By jockya at 2007-9-27 12:08:28
Hi, I had gone through the J2EE guildelines First edition. wherein it talks about three different types of client:Web ClientEJB ClientEIS ClientWhereas I was stunned to see that second edition shunned the usage of the EIS client.Why is this discrepancy?Can anyone shed some light on this?When ...

Is there any practical reason to use DB helper class?

179 byte By fzlxa at 2007-9-27 12:32:16
Is there any practical reason to use database helper class ( e.g. database.bookDB in Duke's bookstore)in servlet design? What if I setup a DB connection for every servlet?

connectivity with Active directory

217 byte By tarun22_2000a at 2007-9-27 12:39:32
i need to connect to microsoft active directory but i am unable to get the right start. also what is Microsoft ADSI package .Is it oging to solve out my problem.Thanks in advance for the helpTarun

Business delegate pattern doubt

789 byte By mpbhata at 2007-9-27 12:44:32
Hi,One of the reasons for going for Business delegate pattern is because the business components is vulnerable to changes.Suppose if the business component has a method getAccountInfo( int Accountnumber)The business delegate pattern may have a methodgetAccountInfoFromBusiness(Accountnumber ...

how to make an object distributed across multiple jres?

542 byte By raj_217a at 2007-9-27 12:46:41
Hi,We used cache data mechanism for performance tuning. It will store data in static variable (Hashtable) and get initialized when app starts . We are using IPlanet Application Server and Using 6 KJS engines. This object ( Hashtable) is not distributed across all JRES.It has to reinitialize ...

How to submit a success story to Sun?

186 byte By clinton_listenera at 2007-9-27 12:47:46
Hi,can anyone tell me how I can submit a success story toSun? There used to be a Web site for doing that, butI couldn't find it any more.Thanks a lot

PLEASE HELP! Problems creating Entity Bean

2293 byte By Genesis2000a at 2007-9-27 12:53:32
Hello, I've created an Application Client in order to access an Entity Beans via a Session Bean. Whilst creating the "Language"-Bean via the Remote Object the size of the error log is growing very fast (in a few minutes up to 500 MB) and the SUN minor code 1015 is thrown. Does anyone know what ...

IT'S FINALLY HERE!!!

35 byte By JTeen at 2007-9-27 13:52:51
IT'S FINALLY HERE!!!

Swing Performance

386 byte By tvynr at 2007-9-27 13:53:15
First blood! :)I'm planning on developing a visual engine for a 2D real-time strategy game. How much overhead does Swing incur? Is it practical for Swing to deal with a couple hundred Components visible while still maintaining a decent framerate?Please let me know if you have any experience ...

How to add notes to a map

488 byte By jschell at 2007-9-27 13:53:48
Say that you have a game which has maps. And you want to allow the user to add notes to the map.How is this done?The problem can be broken down into to three parts.1. How are the notes represented on the map? For instance like a little flag.2. How do the notes (text) map to the map? For ...

ok i wont bug them anymore

210 byte By ivcho at 2007-9-27 13:54:01
i guess they showed that they do care about what the community would like to see in these forums so i wont bug them anymore about the Water Cooler.Thanks ****, and sorry.Regards, Ivo

3d raycasting

262 byte By Mr_Silly at 2007-9-27 13:54:02
Has anyone seen any easy tutorials for 3d raycasting? I find it tricky to get my head around applying calculus to a 2 dimensional byte array (the byte array being the "map") to figure out what the user can see on the screen.Thanks in advance

Let's see some games!

782 byte By Ceranith at 2007-9-27 13:54:40
Alright, it'll be a little slow in here for the first few days, but I wanted to start some things off. Post some of your games that you'd like us to see, I'm interested. Anything, if it's small, in progress, or just want to show everyone. I think it'll get some ideas going through some ...

game engines

463 byte By ajalali at 2007-9-27 13:54:45
Hi, I used to play around writing some code in c of course with the help of some game engine.... anyway I like to try with java but have no idea where to start. I know about java 2D 3D but thats about it... however i wonder if there are any open source stuff out there that you like. also how ...

the business delegate pattern in petstore

234 byte By zhebincong at 2007-9-27 13:54:58
hello who can tell me which class in the petstore implement the business delegate pattern.otherwise,who can tell me which website provide sample code for the j2ee design psttern.thank you very much!

Getting a ColorCube to rotate in z-axis/x-axis using RotationInterpolator

212 byte By asphodeli at 2007-9-27 13:55:24
Hi, I've been trying to get a simple ColorCube to rotate in the z/y-axis, but to no avail. I've used a 4x4 matrix for rotation but it doesn't work. Do I have to use a Quaternion? Can anyone help?

TUTORIALS PLEASE

85 byte By Dante_Shamest at 2007-9-27 13:56:21
Any experts in Java game development?Please post some tutorials!

help with AI

541 byte By alimanpagal at 2007-9-27 13:57:31
i am a newbie in game deve, and made my first game (pong) which is at: www.geocities.com/alimanpagal/betagame.htmland it's source is at:www.geocities.com/alimanpagal/TestCollision.javathe thing which is wrong with my game that it has zero intelligence, it's a traditional ping-pong game. the ...

How to detect click over specfic area in the Canvas

846 byte By Joe13x at 2007-9-27 13:58:01
i making a board game.i draw the graphics on my JPanel,i don't actually used the JButton but instead i draw the picture of the graphics button on JPanel (because i want fixed size-location button, and not simple button look Button) okay i can detect the user clicking on my JPanel. but what i ...

Music For Games

151 byte By JTeen at 2007-9-27 13:58:22
If anybody needs music for there games, then I suggest they get acid music. I just got it and it finally solved my game music problem. :)

3D Editor

218 byte By Matei at 2007-9-27 13:58:35
Hi,Glad to see a game development forum here :). I was wondering, does anyone know an inexpensive 3D editor that could be used for making game objects for Java3D? I've been looking around for one.

Some bad idea

1334 byte By Raghar at 2007-9-27 13:59:47
I know IT IS bad idea to post something twice. But... I'd like answers... and this is java game development.I need little cross platform compareI need to know differinces between computers and operating systems. You should write: (no need for precise numbers ^_^)System:(Windows ...

math and galaxys

835 byte By markuskidd at 2007-9-27 13:59:53
I'm working on a project where I am interested in generating a spiral galaxy in two dimensions, but making very slow progress so far. Basically, I need to develop a method of taking information such as:How many starsHow many armsMinimum distance stars can be apartMaximum distance stars can be ...

Image loading troubles

971 byte By SpikesCafe at 2007-9-27 13:59:57
Hi, everyone. Nice little forum you have here! :)I'm quite the n00b to making games, but am trying my best. I can get everything to work fine using AppletViewer, but whenever I try to use a web browser, an exception is thrown at the following location in my code:static String bgFile = ...

telnet colors

105 byte By felixters at 2007-9-27 14:00:32
How does one output different colors to a telnet app. This question is baffling.Rick

How to Create a Nibbles/Snake Game

319 byte By Dante_Shamest at 2007-9-27 14:05:33
Hi, I'm a total newbie at game development, so could someone tell me the basic mechanics of creating a snake/nibbles game?If someone could provide me with the source code for a simple nibbles game (preferably an application, not applet), I'd be grateful. =)Regards, Dante ...