This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!

Pupa Chaudhuri

Greenhorn
+ Follow
since Jan 31, 2019
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
1
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pupa Chaudhuri

Hi
I have set up my codebase in Eclipse IDE 4.4.
I have JBOSS EAP6.1 set up in it.

In my code, in the web.xml, I am referring to JBOSS's homepath which is C:\Tools\jboss-eap-6.1.0-QA\jboss-eap-6.1.0-QA.

As this appears in another context file of my spring project code, so I am referring to JBOSS's home path using ${JBOSS_HOME} in the xml files and have set up classpath variable JBOSS_HOME which points to the above path.

The JBOSS server was running fine and was able to detect JBOSS_HOME placeholder in the code, however, suddenly after deploying an updated .war, and restarting it, it started failing to identify this ${JBOSS_HOME} placeholder in the deployed code.
I have double checked the set up of the classpath variable in eclipse and it is set up correctly.
I have also verified this in my workspace's ".metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs file which has the below set up -

org.eclipse.jdt.core.classpathVariable.JBOSS_HOME=C\:/Tools/jboss-eap-6.1.0-QA/jboss-eap-6.1.0-QA

Can some one please help me out in understanding this sudden change of behaviour of the JBOSS server and what could have gone wrong?
Thanks Dave.
In the query() method only 1 instance of RowMapper implementation(StudentMapper) is provided here.
When the query() method iterates over the result set in backend, it makes use of that one instance of the mapper and calls the mapRow() method as many number of times as there are rows in the ResultSet rs?
1 month ago
I am new to Spring and learning its JDBC Framework.
I came across a piece of code -

Below is snippet to retreive a list of Student object. This means the SQL query returns more than 1 row in the ResultSet rs.


I was going through the RowMapper<T> spring documentation java.lang.https , and found that mapRow() is not supposed to
call next() on the ResultSet rs as it is supposed to map only the the current row with the Java domain object.

My question is if the ResultSet rs has multiple rows of data, who or what causes the cursor to move to the next row and perform mapping using mapRow()?
Is it the queryForObject() method of JdbcTemplate doing something implicitly or something else?
I am looking for an explanation how this work gets done.

1 month ago