Pupa Chaudhuri

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

Recent posts by Pupa Chaudhuri

I found an interim solution for this.
I have updated the JBOSS server configuration xml (standalone.xml) in my local to have an additional system property by the name JBOSS_HOME.
This is only in my local though.
In higher environments, there is no such system property in the configuration xml, and I am trying to figure out how does this variable gets it value.
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?
5 years 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.

5 years ago