Prem Bhazee

Ranch Hand
+ Follow
since Feb 18, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prem Bhazee

Hi

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.

Thanks in addvance
By any chance is RAD IDE trial version available. Just wanted to get started in RAD.

Thanks
Bhazee
Hi Ranchers,
I have an arraylist question.



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 ]
15 years ago
Guido

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.

Thanks
Bhazee
15 years ago
Hi Ranchers.

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.

Please advise. Thanks in advance.

Bhazee
15 years ago
Hi
But I need to commit only when all the queries are executed successfully or else rollback both.

Thanks
Bhazee
Hi,
First of all thanks for your time. Here is the JDBC snippet.


Please let me know if you need more details.
Thanks
Bhazee
Yes,
I am using different connection objects for the concurrent queries and I am also closing both the connection objects.

Bhazee
Hi Ranchers

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.


Thanks in advance
Bhazee
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.

Thanks
Bhazee
15 years ago
Thanks Ernest.

That makes lot of sense.

Thanks for the quick reply.

Bhazee
15 years ago
Hi all,

I am trying to read values from a text file.And my text file is as follows

0,4
dsddss,2332
dddfdfdf,23233


But I am getting null pointer exception in the while loop.



Can you please help.

Thanks
Bhazee
15 years ago
Hi Ranchers,

I am fairly new to struts. I need to retrieve values from a database when my home page is loaded.

Can I call my application url with databasevalues.do so this action class is called.


or I am not sure should I use Form submit in a JSP to pass action to the
/databasevalues and show the values from db to the same JSP like this

firstpage.jsp
<html:form action="/databasevalues " focus="name">
</html>



Thanks in advance
Bhazee
15 years ago
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.

Thanks in advance
Bhazee
15 years ago
Thanks guys..

Can you please point to some good starting tutorials for JSF.

Thanks in advance
Bhazee
15 years ago
JSF