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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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
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 ...
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.
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
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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...- ...
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 ...
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, ...
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 ...
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?
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
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 ...
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 ...
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
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 ...
35 byte By
JTeen at 2007-9-27 13:52:51
IT'S FINALLY HERE!!!
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 ...
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 ...
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
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
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 ...
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 ...
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!
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?
Any experts in Java game development?Please post some tutorials!
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 ...
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 ...
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. :)
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.
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 ...
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 ...
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 = ...
How does one output different colors to a telnet app. This question is baffling.Rick
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 ...