I have been out of Java for 3 years now my company suddenly want to take over couple of J2EE applications for doing some enhancements. Earlier I hevnt done much with J2EE only core Java. I dont have much time to learn all the J2EE techlogies. I am just wondering what should I do so that I get a good hold of the J2EE app I am going to support. The problem is I dont have a design document or anything just the workspace. Please advise what is the best way to analyze the code flow.
In my method methodxyz() when I call appendDetailstoAlList which returns an arraylist how should I declare the arraylist variable. Should I just create a reference of an arraylist variable and assign to the method or should I instantiate a arraylist and then refer to the variable of type arraylist. Please advise. Thanks Bhazee [ April 28, 2008: Message edited by: Prem Bhazee ]
Thanks for your information. Also when you mentioned about Timestamps just wondering what you had in mind.Just trying to come up with the best approach.
I am not sure is this the right forum for this question.
I am trying to come up with a logic for a small utility. Bascially I need to run a java program that will call a Stored Procedure to insert records into a table from a text file which has several hundred rows. If the rows are being appended to the text file everytime to the existing rows how can I know until which rowcounts I have updated last time to the database after the program runs.I mean if I have updated 1-100 row the first time how can I keep track so that I will start updating from the 101 row on the next run. Do you think I should keep an indicator which updates the text file so that next time I will know which rows have been updated. Or is there anyother mechanism to do this relatively easily.
I am running a Java application which has multiple sql queries including update and insert.Basically I am connecting to a MS Sql Server.
But I am getting the following error.
Error Details - [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt.
I am getting this error only when my Jave application is accessing the database to do this update/insert. At the same time when another application is updating the same database.
Please let me know if I need to post my piece of code which has the JDBC operations or this error is due to the database contention when two apps working on the same table.
Can you please let me know a work around for this kind of sql exception.
Hi All. I am trying to append two arraylist as shown below. bappendList = alValue1.addAll(alvalue2);
The bappendList is returning true as long as alvalue2.size > 0 but when alvalue2 = 0.It is returning false. So the addall will fail when the arraylist to be appended is of size '0'. Can you confirm.
Hi Ranchers, What is the best way to improve logics. Since most of the coding works on developing quick/good logic. Is there a book or resource for developing logics which will be used in coding. Most of the times I end up speding time thinking abt the logics.How can one improve his logical thinking.